[CentOS] Removing old kernels

Max Hetrick maxhetrick at verizon.net
Wed Jun 3 17:59:15 UTC 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?

You can also have the installonlyn limit bumped up if you want to 
automatically only keep n number of kernels.

# vim /etc/yum.conf
installonly_limit = n

Set n to the number you want to keep.

Regards,
Max



More information about the CentOS mailing list