|
From: Chris H. <ha...@de...> - 2006-03-22 23:47:46
|
On Sunday 19 March 2006 02:36, Micha wrote:
> The latter, found in debian/pool/main/m/mozilla-firefox,
> is a good example for a related issue, that is, changing
> package names and/or classification. Debian unstable has firefox
> version 1.5, which i can find now in debian/pool/main/f/firefox:
> firefox_1.5.dfsg+1.5.0.1-4_i386.deb
> mozilla-firefox_1.5.dfsg+1.5.0.1-4_all.deb
This particular problem is very hard to solve, and I don't think it is worth
spending time trying to do this.
> The question is, can i have AP 'clean up' all files that are older
> than a specified time regardless of the number of versions ?
> Can i modify the config temporarily to delete anything older than (today) 1
> day, and that would leave me with 'sid' only ?
>
> These are the related config settings:
>
> min_refresh_delay = 1h
> cleanup_freq = 1d
> max_age = 1d
> max_versions = 1
> dynamic_backends = off
>
> So, how can i have AP clear the old files ?
Your configuration as shown should work... but only if a-p has been running
for a whole day. Try setting cleanup_freq to something small so the cleanup
cycle is started quickly, e.g. 30m.
Alternatively, use a find command to remove the files from the cache:
find /var/cache/apt-proxy/* -amin +1440 -exec rm {} \;
(1440 is 60*24 minutes = 1 day)
Chris
|