Bug#979631: APT::Get::AutomaticRemove::Kernels: also allow keeping N newest

2021-01-09 Thread 積丹尼 Dan Jacobson
retitle 979631 Document AutomaticRemove::Kernels facts somewhere thanks > "JAK" == Julian Andres Klode writes: JAK> There seems to be a misunderstanding on your side here - we always keep That is all great, but documented nowhere in /usr/share/doc nor any man page. Without knowing all that,

Bug#979631: APT::Get::AutomaticRemove::Kernels: also allow keeping N newest

2021-01-09 Thread 積丹尼 Dan Jacobson
I also hope at least one "No available version in archive" version is left on the disk, # apt-show-versions -r -p '^linux-image-[0-9]+\.' linux-image-5.10.0-1-amd64:amd64/unstable 5.10.4-1 uptodate linux-image-5.9.0-5-amd64:amd64 5.9.15-1 installed: No available version in archive Else if there

Bug#979631: APT::Get::AutomaticRemove::Kernels: also allow keeping N newest

2021-01-09 Thread Julian Andres Klode
On Sat, Jan 09, 2021 at 08:23:55PM +0800, 積丹尼 Dan Jacobson wrote: > Package: apt > Version: 2.1.16 > > Regarding (/usr/share/doc/apt/examples/configure-index) > > AutomaticRemove "" { > "Kernels" ""; // Allow removing kernels even if not > removing other packages (true for

Bug#979631: APT::Get::AutomaticRemove::Kernels: also allow keeping N newest

2021-01-09 Thread 積丹尼 Dan Jacobson
Package: apt Version: 2.1.16 Regarding (/usr/share/doc/apt/examples/configure-index) AutomaticRemove "" { "Kernels" ""; // Allow removing kernels even if not removing other packages (true for dist-upgrade) }; I would also have another variable, with a digit argument,