[CentOS] Removing old kernels
maxhetrick at verizon.net
Wed Jun 3 17:59:15 UTC 2009
Frank M. Ramaekers wrote:
> I have the following kernels on my /boot:
> 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.
More information about the CentOS