Skip to content

Instantly share code, notes, and snippets.

@danilo04
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danilo04/514f282afc509b1e10f2 to your computer and use it in GitHub Desktop.
Save danilo04/514f282afc509b1e10f2 to your computer and use it in GitHub Desktop.
; 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