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
?
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
?
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:
Just try:
You can edit file
/etc/apt/apt.conf
and add this: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
#
)