[CentOS] Removing old kernels

Gilbert Sebenste sebenste at weather.admin.niu.edu
Wed Jun 3 17:42:03 UTC 2009


On Wed, 3 Jun 2009, Frank M. Ramaekers wrote:

> I have the following kernels on my /boot:
>
> 2.6.18-128.1.6
> 2.6.18-92.1.18
> 2.6.18-92.1.22
>
> I'm low on /boot space and need to remove the oldest version.  It
> appears that I cannot use yum to remove since all of the versions are
> the same (only the release is different).  I believe that I can use rpm
> to remove the old version, but I also need to remove them from the
> grub.conf.   Any other considerations and/or methods?

Do an "rpm -q kernel" to make sure those are it. Then what I do is simply 
this:

rpm -e kernel-2.6.18-92.1.18

rpm -e kernel-2.6.18-92.1.22

*******************************************************************************
Gilbert Sebenste                                                     ********
(My opinions only!)                                                  ******
*******************************************************************************



More information about the CentOS mailing list