On Sat, 6 May 2017 11:47:01 -0400 Eric Cooper <[email protected]> wrote:
> On Sat, May 06, 2017 at 12:19:13PM +0200, Benedikt Trefzer wrote:
> > The manpage mentions approx-gc for removal of unneeded versions of
> > packages.
> > approx-gc was removed in version 5.7.1 of the debian package.
> > The manpage should therefore mention the new way to clean up the cache.
> > (I hope there is on, I did not yet figure out howto do it !)
>
> Thanks for the report. Until a better version of approx-gc returns,
> there is a simple weekly cron job that just removes old files from the
> cache. Unfortunately, especially for jessie, these old files might
> still be the current versions of those packages, so it's far from
> perfect.
>
> --
> Eric Cooper e c c @ c m u . e d u

>

Has there been any progress towards replacing approx-gc other than the cron job? I noticed my approx cache is filling up my local server's root partition. I'm able to keep going by moving directories to other partitions and symlinking them, but will have to upgrade hard drives at some point. It seems like there are multiple old, no-longer downloadable versions of various packages in the cache. For instance running locate to exclude backports and i386 versions of the 4x Debian kernel:

locate linux-image-4. |grep deb | grep debian | grep approx | grep -v i386 | grep -v bpo

/var/cache/approx/debian/pool/main/l/linux/linux-image-4.18.0-1-amd64_4.18.6-1_amd64.deb
/var/cache/approx/debian/pool/main/l/linux/linux-image-4.18.0-2-amd64_4.18.10-2+b1_amd64.deb
/var/cache/approx/debian/pool/main/l/linux/linux-image-4.18.0-2-amd64_4.18.10-2_amd64.deb
/var/cache/approx/debian/pool/main/l/linux/linux-image-4.18.0-3-amd64_4.18.20-2_amd64.deb
/var/cache/approx/debian/pool/main/l/linux/linux-image-4.9.0-6-amd64_4.9.82-1+deb9u3_amd64.deb
/var/cache/approx/debian/pool/main/l/linux/linux-image-4.9.0-7-amd64_4.9.110-1_amd64.deb
/var/cache/approx/debian/pool/main/l/linux/linux-image-4.9.0-8-amd64_4.9.130-2_amd64.deb
/var/cache/approx/debian/pool/main/l/linux/linux-image-4.9.0-8-amd64_4.9.144-3.1_amd64.deb
/var/cache/approx/debian/pool/main/l/linux/linux-image-4.9.0-8-amd64_4.9.144-3_amd64.deb
/var/cache/approx/debian/pool/main/l/linux/linux-image-4.9.0-9-amd64_4.9.168-1_amd64.deb
/var/cache/approx/debian/pool/main/l/linux-signed-amd64/linux-image-4.19.0-1-amd64_4.19.12-1_amd64.deb
/var/cache/approx/debian/pool/main/l/linux-signed-amd64/linux-image-4.19.0-2-amd64_4.19.16-1_amd64.deb
/var/cache/approx/debian/pool/main/l/linux-signed-amd64/linux-image-4.19.0-4-amd64_4.19.28-2_amd64.deb
/var/cache/approx/debian/pool/main/l/linux-signed-amd64/linux-image-4.19.0-5-amd64_4.19.37-3_amd64.deb
/var/cache/approx/debian/pool/main/l/linux-signed-amd64/linux-image-4.19.0-5-amd64_4.19.37-5_amd64.deb

But the buster (Debian stable) repository currently only has the latest version, 4.19.0-5, albeit in a variety of architectures and varieties.

apt-cache search linux-image-4.

Some of the archived packages might for for Debian testing (buster before it was stable) and oldstable stretch, but I don't believe they are currently downloadable.  Thanks for everything.

Reply via email to