Skip to content

Instantly share code, notes, and snippets.

@crazyrohila
Last active November 25, 2016 06:29
Show Gist options
  • Save crazyrohila/8a9a2ec964f889a95bb9ac9f9fd4869d to your computer and use it in GitHub Desktop.
Save crazyrohila/8a9a2ec964f889a95bb9ac9f9fd4869d to your computer and use it in GitHub Desktop.
Remove old images in boot dir
uname -r ##identify the kernel you are presently booting DO NOT remove this one ! Keep one other for a back up.
dpkg -l | grep linux-image- ##identify all installed kernel images
dpkg -l | grep linux-headers- ##identify all kernel header files
sudo apt-get --purge remove linux-image-3.2.0-31-generic ##for example
sudo apt-get --purge remove linux-headers-3.2.0-31-generic ##for example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment