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

Re: space-limiting /var/cache/apt/archives



On Fri, Oct 15, 2004 at 10:47:17AM +0200, Robert Waldner wrote:
> 
> Hi!
> 
> Is it possible to somehow tell apt to use no more than X MB of 
>  space for the archive, or not to keep more than Y versions of any 
>  package? I can't find anything about it in apt.conf(5).

That man page has something that comes close (but not quite):

Cache-Limit
       APT  uses  a  fixed  size  memory mapped cache file to store the
       'available' information. This sets the size of  that  cache  (in
       bytes).

This is not the same as the cache size. But if you keep this figure
low, then your package cache in /var/cache/apt/archives also can't
grow too large. Then again, I'm beginning to doubt if this is actually
true...

Having a limit on the archive cache could be useful for me as
well. Every now and then I make a CD with all the packages in there. A
limit of 700MB would be handy then. :)

Anyway, here's my /etc/apt/apt.conf. Maybe it gives some more
ideas.

APT::Default-Release "testing";
APT::Cache-Limit 10000000;
APT::Clean-Installed Yes;
DSELECT::Clean auto;

The options for cleaning out the cache are worth checking out in the
docs. `apt-get autoclean' basically keeps the most recent package, so
you may want to run that - after reading the apt-get man page.

> (Pls CC me on replies, I'm not on the list with this address)

Done. But configuring your mail client to set a Reply-To header should
work here. OK, I've put your email address in the Reply-To header
myself now; let's see if that works out alright. :)

-- 
Maurits van Rees | http://maurits.vanrees.org/ [Dutch/Nederlands]
"Let your advance worrying become advance thinking and planning."
 - Winston Churchill



Reply to: