Created
March 12, 2012 10:22
-
-
Save dhinus/2021065 to your computer and use it in GitHub Desktop.
Remove old kernels - Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment