(Tips & Tricks) remove old kernels

July 2, 2012

How to get rid of old kernels

Source: http://tuxtweaks.com/2010/10/remove-old-kernels-in-ubuntu-with-one-command/

dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r |\
cut -f1,2 -d"-"` | grep -e [0-9] | xargs sudo apt-get -y purge

 
"Everyone needs to believe in something. I believe I'll have another beer."

Powered by Wordpress. Theme by Shlomi Noach, openark.org
© 1997 - 2020 KwaLinux Trainingen | Algemene voorwaarden | KvK: 10147727 | BTW-id: NL001873211B65 | Disclaimer