Last active
August 29, 2015 14:02
-
-
Save danilo04/514f282afc509b1e10f2 to your computer and use it in GitHub Desktop.
This file contains 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
; restart before running this | |
dpkg --get-selections | \ | |
grep 'linux-image*' | \ | |
awk '{print $1}' | \ | |
egrep -v "linux-image-$(uname -r)|linux-image-generic" | \ | |
while read n | |
do | |
sudo apt-get -y remove $n | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment