On Mon, Apr 19, 2004 at 05:23:53PM -0700, Matt Zimmerman wrote: > On Tue, Apr 20, 2004 at 01:45:13AM +0200, Osamu Aoki wrote: > > > We all know > > > > # apt-get autoclean > > clean local cached package files. (or apt-get clean) > > > > But simply doing this is too aggressive to my taste. > > > > (We lose older but recent packages which may be the ones needed for > > recovering from recent broken upgrade process.) ... > I use something like this in cron.daily: > > find /space/cache/apt/archives -type f -atime +5 \ > | xargs --no-run-if-empty rm
This is more like gentle version of "apt-get clean". If last update of the package was older than 5 days, and new package break system, I still need to download old version from somewhere. My script waste more disk space but gurantees local access to older packages. Size of disk space is comparable to autoclean.

