We've created a script to assist with installing aider using as minimal space as possible to allow for the most flexibility. It is attached to this knowledgebase article.