Created
June 1, 2014 10:33
-
-
Save argilzar/28471024f8b251b5ef13 to your computer and use it in GitHub Desktop.
Remove old linux kernels, usefull when your /boot partition is full
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
| dpkg --get-selections|grep 'linux-image*'|awk '{print $1}'|egrep -v "linux-image-$(uname -r)|linux-image-generic" |while read n;do apt-get -y remove $n;done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment