Skip to content


Removing old kernels from Ubuntu

Something I like in Fedora is that old kernels get purged every 3 new kernels (when you have 3 kernel versions installed, installing a new one will kick the old one out). In Ubuntu, they seem to be just stacking endlessly. There is however a simple way to delete them (cleanly): they can be uninstalled from the package manager.
First, you’ll want to check the current kernel version you’re running (don’t uninstall that one, obviously): in the console, type uname -r. Then go to the package manager and search for linux-image. At some point, you’ll find a bunch of packages like “linux-image-2.6.35-27-generic”. Simply mark the ones you don’t want anymore for removal, apply, and you’re done. Note that this process is worth doing, as removing 4 kernel versions freed me around 550 MiB of disk space…
A final note for console fans: from the command line, the uninstallation command looks like:

sudo apt-get remove –purge linux-image-2.6.35-27-*

(once again, make sure you don’t remove the version you’re currently using)

Posted in Linux.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.

Sorry about the CAPTCHA that requires JS. If you really don't want to enable JS and still want to comment, you can send me your comment via e-mail and I'll post it for you.

Please solve the CAPTCHA below in order to fight spamWordPress CAPTCHA