Skip to content

Instantly share code, notes, and snippets.

@vyper
Last active December 16, 2015 01:39
Show Gist options
  • Save vyper/5356318 to your computer and use it in GitHub Desktop.
Save vyper/5356318 to your computer and use it in GitHub Desktop.
Apagar os "kernéis" antigos
dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | grep -v libc-dev| xargs sudo aptitude -y purge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment