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

Re: Reducing the size of apt-caches



On 9/6/06, Klaus Knopper <debian-knoppix@knopper.net> wrote:
I usually do a

for i in $(find /var/lib/apt/lists -type f \( -name \*Packages -o -name \*Sources \) 2>/dev/null); do  :>"$i"; done
dpkg --clear-avail
rm -f /var/cache/apt/*.bin
apt-cache gencaches

FYI, "apt-get check" takes care of the last 3 lines.  I also like to
make sure the lists are in the past; a few things will screw up if
they're not.  Basically I do:

for i in /var/lib/apt/lists/*_{Release,Packages,Sources}; do >$i;
touch -t 198103190000.00 $i; done; apt-get check

Also, recently apt's new diff system horribly breaks when this is
applied.  It has to be disabled.  Put this in
/etc/apt/apt.conf.d/10disablepdiffs:

// Apt dies a messy death when PDiffs are on and release scripts have been run
Acquire::PDiffs "false";

RF



Reply to: