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

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



retitle 979631 Document AutomaticRemove::Kernels facts somewhere
thanks
>>>>> "JAK" == Julian Andres Klode <jak@debian.org> 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, users will worry or continue to rely on
programs like:

# cat bin/remove-oldest-kernel
#!/bin/bash -eux
# remove my oldest kernel to free disk space
# Copyright       : http://www.fsf.org/copyleft/gpl.html
# Author          : Dan Jacobson -- http://jidanni.org/
# Created On      : June 2007
# Last Modified On: Wed Apr 10 13:30:58 2019
# Update Count    : 126
ls -1 /boot/vmlinuz*
apt-show-versions -r -p "^linux-(doc|image)-[0-9]+\."
echo Remove \#...
set -- $(aptitude -F %p search ~nlinux-image-.........*~o)
echo [hit ^D to get out]
select kernel
do
   aptitude purge $kernel
break
done


Reply to: