On Fri, Jun 6, 2014 at 5:52 AM, Horatio Leragon <hlera...@yahoo.com> wrote: > > dpkg --list 'linux-image-*' \ > | perl -ane 'BEGIN { $r = `uname -r` or die; chomp $r } print $F[1], > "\n" if $F[0] eq "ii" && $F[1] !~ /\Q$r\E\b/' \ > | xargs -r aptitude purge -y
This script'll remove linux-image-generic and the kernel will no longer be upgraded automatically. And if your box has Secure Boot (even disabled), the corresponding linux-signed-* packages will be installed and won't be purged. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/CAOdo=SzPb7-E29G7U-X9EiXa7s_FvFV-=hbkcbkhswqnj6y...@mail.gmail.com