Skip to content

Instantly share code, notes, and snippets.

@Adron
Created December 10, 2017 08:46
Show Gist options
  • Save Adron/1e74a44ce9c41a0a28a94faedff364a7 to your computer and use it in GitHub Desktop.
Save Adron/1e74a44ce9c41a0a28a94faedff364a7 to your computer and use it in GitHub Desktop.

First find packages.

dpkg -l linux-image*

Identify the kernal version in use.

uname -r

Delete the old kernals.

sudo apt-get remove linux-image-4.4.0-{101,103}-server
sudo apt-get remove linux-image-4.8.0-{36,56,58}-server
...etc...

Then clean up the old kernals.

sudo apt-get autoremove

For post 16.04 Ubuntu this is available -> http://ubuntuhandbook.org/index.php/2016/05/remove-old-kernels-ubuntu-16-04/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment