How to Remove Old Kernels From Ubuntu 13.04, 13.10

Last updated: August 24, 2013

If you’ve using Ubuntu for a period of time, you may have old kernels that are no longer useful on your system. It may be annoying to have these kernel entries in Grub boot menu. So here’s how to remove the old kernels in Ubuntu 13.10 Saucy, Ubuntu 13.04 Raring.

The efficient way to do the job is using the Ubuntu Tweak, which lists all un-used kernels and gives an option at right-bottom corner to clean them up.

Remove Old Kernels

To install Ubuntu Tweak, download the DEB package in the right sidebar of this page. Then double-click to install via Ubuntu Software Center.

At the moment, Ubuntu Tweak is not ready for Ubuntu 13.10 Saucy. So below is the command line way:

1.) Press Ctrl+Alt+T to open terminal for running commands. Check current running kernel version.

uname -r

Don’t remove this kernel!

2.) Copy and paste below command and hit run to check list of installed Kernels on your system:

dpkg --list | grep linux-image

3.) Find out the kernels you want to remove, and run below command to accomplish it: Change x.x.x.x to the kernel version

sudo apt-get purge linux-image-x.x.x.x-generic

Twitter

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to let me know if the tutorial is outdated! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via [email protected] Buy me a coffee: https://ko-fi.com/ubuntuhandbook1 |

3 responses to How to Remove Old Kernels From Ubuntu 13.04, 13.10

  1. Wellington Torrejais da Silva July 18, 2014 at 12:45 pm

    Thanks

  2. Thanks. I used the instructions for 13.10 to cleanup many older versions on my old laptop

  3. I have kernels in the Boot folder that are not found in apt-get and I can’t delete them manually.