How can I direct apt-get install package_name to download package and its dependencies to some other location instead of var/cache/apt/archives?
Tell me more
×
Ask Ubuntu is a question and answer site for
Ubuntu users and developers. It's 100% free, no registration required.
|
You can download a package and all its dependencies with the following command, provided neither the package nor its dependencies are installed in the machine:
|
|||
|
|
|
You can edit file
Note that from now on, all downloaded files by apt will be stored on that dir.
To disable it, you only need to comment that line (with |
|||
|
|