[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: apt cache folder



On Thu, Jul 08, 2004 at 12:05:54PM -0500, Robert Citek wrote:
> Is there a way to specify a different apt cache folder other than the 
> default of /var/cache/apt/archives/ ?  Alternatively, is there a way to 
> specify more than one apt cache folder?

From apt.conf(5):

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

So you could run apt-get with "-o Dir::Cache=/home/apt" or something.

Steve
-- 
steve@silug.org           | Southern Illinois Linux Users Group
(618)398-7360             | See web site for meeting details.
Steven Pritchard          | http://www.silug.org/

-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.