LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how can I change the apt-get download location? (https://www.linuxquestions.org/questions/linux-general-1/how-can-i-change-the-apt-get-download-location-172198/)

trees 04-19-2004 04:26 PM

how can I change the apt-get download location?
 
Greetings,

I want to change where apt-get downloads debian packages to, in order to keep the root partition from overflowing.

Seemingly simple task, but I've searched and searched and no answer

Thank you :)

Genesee 04-19-2004 05:46 PM

from the apt.conf manpage - I've never tried changing the archive dir, so can't offer anything more specific :cool:

Quote:

DIRECTORIES
The Dir::State section has directories that pertain to local state information. lists is the directory to place downloaded package lists in and status is the name of the dpkg status file. preferences is the name of the APT preferences file. Dir::State contains the default directory to prefix on all sub items if they do not start with / or ./.

Dir::Cache contains locations pertaining to local cache information, such as the two package caches srcpkgcache and pkgcache as well as the location to place downloaded archives, Dir::Cache::archives. Generation of caches can be turned off by setting their names to be blank. This will slow down startup but save disk space. It is probably prefered to turn off the pkgcache rather than the srcpkgcache. Like Dir::State the default directory is contained in Dir::Cache

vectordrake 04-20-2004 12:54 AM

If you don't need the local cache (and who really does?), type apt-get clean

That should help you reclaim more space.

If you really need to change the place in /var/cache that you are downloading to, you might want to create a symbolic link to another directory where you want the packages to actually to.


All times are GMT -5. The time now is 02:10 AM.