[ubuntu-us-mi] Removing all but current kernel

Robert Citek robert.citek at gmail.com
Thu Jun 30 00:24:40 UTC 2011


One-liner to removal all but the current installed kernel:

apt-get purge $(
ls /boot/vmlinuz-* |
grep -v $(uname -r) |
xargs -r dpkg -S |
cut -d: -f1 |
sort |
uniq
)

Regards,
- Robert



More information about the ubuntu-us-mi mailing list