Remove Old Kernels In Ubuntu With One Command

October 2, 2010 by · 77 Comments
Filed under: command line, HowTo, linux, Ubuntu 

A while back I wrote a post on how to remove old kernels from your Ubuntu system. While that process works just fine, it is a four step process. One person who read that post left a comment with a nice command line one-liner that removes all but the currently running kernel. And while that one-liner works quite well, I must admit that I don't understand all the regular expressions used in it, so I decided to try and come up with my own one-liner to remove the old kernels from my system. Read more

Remove Old Kernels in Ubuntu

December 5, 2009 by · 28 Comments
Filed under: HowTo, linux, Ubuntu 

Edit: Oct. 2, 2010 - I've written a new post that shows a bash one-liner command that will remove the old kernels from your system in one step. You can check it out here.

If you've been using Ubuntu Linux for a while, then you probably have a number of Linux kernel updates that have been installed on your system. (I've got a total of 3 kernels in my Karmic system already.) In all likelihood, these updates get installed and you boot into the latest kernel, never to use the older kernels again. But these old kernels are still hanging around on your system, cluttering up your grub boot screen and taking up space on your hard drive.   Read more