On Tue, Oct 10, 2017 at 22:04:00 +0100, Mark Hindley wrote: > - What repositories were clients accessing thorugh apt-cacher?
I use standard Debian testing archives. $ cat /etc/sources.list deb http://ftp.de.debian.org/debian/ testing main contrib non-free deb-src http://ftp.de.debian.org/debian/ testing main contrib non-free deb http://security.debian.org/ testing/updates main contrib non-free deb-src http://security.debian.org/ testing/updates main contrib non-free $ cat /etc/apt/apt.conf.d/01proxy Acquire::http::proxy "http://localhost:3142"; $ cat /etc/apt-cacher/conf.d/local.conf distinct_namespaces = 1 allowed_hosts = 192.168.0.0/24, fd9b:878c:ae10:5cd4::/64 curl_idle_timeout = 60 data_timeout = 60 > - What packages and versions were present and then removed by apt-cacher-cleanup.pl? The output of the following shows the new packages collected today 10-11-2017 at 17:38 CEST (after restoring /var/cache/apt-cacher as originally installed empty by the apt-cacher deb packet). $ apt-get update && apt-get dist-upgrade Holen:1 http://ftp.de.debian.org/debian testing InRelease [136 kB] Holen:2 http://ftp.de.debian.org/debian testing/main Sources.diff/Index [27,9 kB] Holen:3 http://ftp.de.debian.org/debian testing/main amd64 Packages.diff/Index [27,9 kB] Holen:4 http://ftp.de.debian.org/debian testing/main i386 Packages.diff/Index [27,9 kB] Holen:5 http://ftp.de.debian.org/debian testing/main Translation-de.diff/Index [27,8 kB] Holen:6 http://ftp.de.debian.org/debian testing/main Translation-en.diff/Index [27,9 kB] Holen:7 http://ftp.de.debian.org/debian testing/main Sources 2017-10-11-0221.59.pdiff [29,6 kB] Holen:8 http://ftp.de.debian.org/debian testing/main Sources 2017-10-11-0823.07.pdiff [45 B] Holen:9 http://ftp.de.debian.org/debian testing/main amd64 Packages 2017-10-11-0221.59.pdiff [28,1 kB] Holen:10 http://ftp.de.debian.org/debian testing/main i386 Packages 2017-10-11-0221.59.pdiff [28,8 kB] Holen:11 http://ftp.de.debian.org/debian testing/main Translation-de 2017-10-11-0823.07.pdiff [1.682 B] Holen:12 http://ftp.de.debian.org/debian testing/main Translation-en 2017-10-11-0221.59.pdiff [4.359 B] Holen:9 http://ftp.de.debian.org/debian testing/main amd64 Packages 2017-10-11-0221.59.pdiff [28,1 kB] Holen:8 http://ftp.de.debian.org/debian testing/main Sources 2017-10-11-0823.07.pdiff [45 B] Holen:10 http://ftp.de.debian.org/debian testing/main i386 Packages 2017-10-11-0221.59.pdiff [28,8 kB] Holen:13 http://ftp.de.debian.org/debian testing/main amd64 DEP-11 Metadata [3.201 kB] Holen:11 http://ftp.de.debian.org/debian testing/main Translation-de 2017-10-11-0823.07.pdiff [1.682 B] Holen:14 http://ftp.de.debian.org/debian testing/main DEP-11 64x64 Icons [6.909 kB] Holen:12 http://ftp.de.debian.org/debian testing/main Translation-en 2017-10-11-0221.59.pdiff [4.359 B] Holen:15 http://security.debian.org testing/updates InRelease [25,5 kB] Es wurden 10,5 MB in 2 s geholt (5.162 kB/s). Paketlisten werden gelesen... Fertig Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig Paketaktualisierung (Upgrade) wird berechnet... Fertig Die folgenden NEUEN Pakete werden installiert: linux-image-4.13.0-1-amd64 Die folgenden Pakete werden aktualisiert (Upgrade): libcupsfilters1 linux-image-amd64 linux-libc-dev 3 aktualisiert, 1 neu installiert, 0 zu entfernen und 0 nicht aktualisiert. Es müssen 41,6 MB an Archiven heruntergeladen werden. Nach dieser Operation werden 194 MB Plattenplatz zusätzlich benutzt. Möchten Sie fortfahren? [J/n] Holen:1 http://ftp.de.debian.org/debian testing/main amd64 libcupsfilters1 amd64 1.17.9-1 [156 kB] Holen:2 http://ftp.de.debian.org/debian testing/main amd64 linux-image-4.13.0-1-amd64 amd64 4.13.4-1 [40,0 MB] Holen:3 http://ftp.de.debian.org/debian testing/main amd64 linux-image-amd64 amd64 4.13+86 [7.060 B] Holen:4 http://ftp.de.debian.org/debian testing/main amd64 linux-libc-dev amd64 4.13.4-1 [1.339 kB] Es wurden 41,6 MB in 26 s geholt (1.594 kB/s). Lese Changelogs... Fertig (Lese Datenbank ... 170486 Dateien und Verzeichnisse sind derzeit installiert.) Vorbereitung zum Entpacken von .../libcupsfilters1_1.17.9-1_amd64.deb ... Entpacken von libcupsfilters1:amd64 (1.17.9-1) über (1.17.8-1) ... Vormals nicht ausgewähltes Paket linux-image-4.13.0-1-amd64 wird gewählt. Vorbereitung zum Entpacken von .../linux-image-4.13.0-1-amd64_4.13.4-1_amd64.deb ... Entpacken von linux-image-4.13.0-1-amd64 (4.13.4-1) ... Vorbereitung zum Entpacken von .../linux-image-amd64_4.13+86_amd64.deb ... Entpacken von linux-image-amd64 (4.13+86) über (4.12+85) ... Vorbereitung zum Entpacken von .../linux-libc-dev_4.13.4-1_amd64.deb ... Entpacken von linux-libc-dev:amd64 (4.13.4-1) über (4.12.13-1) ... linux-image-4.13.0-1-amd64 (4.13.4-1) wird eingerichtet ... I: /vmlinuz.old is now a symlink to boot/vmlinuz-4.12.0-2-amd64 I: /initrd.img.old is now a symlink to boot/initrd.img-4.12.0-2-amd64 I: /vmlinuz is now a symlink to boot/vmlinuz-4.13.0-1-amd64 I: /initrd.img is now a symlink to boot/initrd.img-4.13.0-1-amd64 /etc/kernel/postinst.d/initramfs-tools: update-initramfs: Generating /boot/initrd.img-4.13.0-1-amd64 /etc/kernel/postinst.d/zz-update-grub: GRUB-Konfigurationsdatei wird erstellt ⦠Found background image: /usr/share/images/desktop-base/desktop-grub.png Linux-Abbild gefunden: /boot/vmlinuz-4.13.0-1-amd64 initrd-Abbild gefunden: /boot/initrd.img-4.13.0-1-amd64 Linux-Abbild gefunden: /boot/vmlinuz-4.12.0-2-amd64 initrd-Abbild gefunden: /boot/initrd.img-4.12.0-2-amd64 Linux-Abbild gefunden: /boot/vmlinuz-4.12.0-1-amd64 initrd-Abbild gefunden: /boot/initrd.img-4.12.0-1-amd64 erledigt linux-libc-dev:amd64 (4.13.4-1) wird eingerichtet ... libcupsfilters1:amd64 (1.17.9-1) wird eingerichtet ... linux-image-amd64 (4.13+86) wird eingerichtet ... Trigger für libc-bin (2.24-17) werden verarbeitet ... $ ls -la /var/cache/apt-cacher/packages/ftp.de.debian.org_debian drwxr-xr-x 2 www-data www-data 4096 Okt 11 18:08 . drwxr-xr-x 3 www-data www-data 4096 Okt 11 17:24 .. -rw-r--r-- 1 www-data www-data 156332 Okt 11 18:08 libcupsfilters1_1.17.9-1_amd64.deb -rw-r--r-- 1 www-data www-data 40048436 Okt 11 18:08 linux-image-4.13.0-1-amd64_4.13.4-1_amd64.deb -rw-r--r-- 1 www-data www-data 7060 Okt 11 18:08 linux-image-amd64_4.13+86_amd64.deb -rw-r--r-- 1 www-data www-data 1339374 Okt 11 18:08 linux-libc-dev_4.13.4-1_amd64.deb $ /usr/share/apt-cacher/apt-cacher-cleanup.pl $ ls -la /var/cache/apt-cacher/packages/ftp.de.debian.org_debian drwxr-xr-x 2 www-data www-data 4096 Okt 11 18:16 . drwxr-xr-x 3 www-data www-data 4096 Okt 11 18:16 .. Unfortunately, all package files were removed and the cache is emtpy again. > ... once a package is no longer mentioned in any index file it is removed. > The newest package is not kept unless it is still current in at least one > release. Right. This would be as it was and would be expected. Thus, e.g., linux-image-4.13.0-1-amd64_4.13.4-1_amd64.deb should stay. Chris