How can I direct
apt-get install package_name to download package and its dependencies to some other location instead of
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