Skip to content

Instantly share code, notes, and snippets.

@crazyrohila
Created November 25, 2016 06:28
Show Gist options
  • Save crazyrohila/6f63219a2c1a22a897d236b2a6de79f1 to your computer and use it in GitHub Desktop.
Save crazyrohila/6f63219a2c1a22a897d236b2a6de79f1 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