Skip to content

Instantly share code, notes, and snippets.

@gkze
Created March 6, 2014 05:05
Show Gist options
  • Save gkze/9382962 to your computer and use it in GitHub Desktop.
Save gkze/9382962 to your computer and use it in GitHub Desktop.
Dirty dirty way to clean your old kernel images
# Do no try this at home kids
dpkg -l | grep -E 'linux-(image|headers)' | grep -v $(uname -r|sed 's:-generic::g') | awk '{print $2}' | xargs apt-get -y remove
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment