Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-19-2004, 04:26 PM   #1
Registered: Dec 2003
Location: Earth... I think!?
Distribution: Debian
Posts: 32

Rep: Reputation: 15
how can I change the apt-get download location?


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
Old 04-19-2004, 05:46 PM   #2
Registered: Dec 2002
Distribution: Slackware
Posts: 927

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

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

Last edited by Genesee; 04-19-2004 at 05:48 PM.
Old 04-20-2004, 12:54 AM   #3
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandriva 10 download location mohnish82 Mandriva 2 05-03-2005 01:06 AM
SUSE Linux 9.0 download location mohnish82 SUSE / openSUSE 1 05-03-2005 12:58 AM
central location to download plugins? Perquisitor Linux - Newbie 1 07-14-2004 07:49 PM
apt-proxy and cron-apt - download once for the whole LAN Abject Debian 1 06-20-2004 01:53 PM
location of apt-get logs theoldman Fedora 1 05-17-2004 08:02 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration