Skip to content

Instantly share code, notes, and snippets.

@AlainODea
Last active December 15, 2015 14:29
Show Gist options
  • Save AlainODea/5274819 to your computer and use it in GitHub Desktop.
Save AlainODea/5274819 to your computer and use it in GitHub Desktop.
Remove previous Ubuntu Kernel images, headers, etc. to prevent /boot from filling up.
dpkg --get-selections | grep linux-image- | grep generic | cut -f 1 | head -n-1 | tr '\n' ' ' | xargs apt-get --assume-yes purge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment