[CentOS] LIMITING NUMBER OF KERNEL VERSIONS RETAINED

Sean Carolan scarolan at gmail.com
Sun Jan 13 16:21:43 UTC 2008


> Could somebody please repost the solution or point me at the correct 
> resource.
> 
> I would also appreciate advice on how to do this on a RHEL4 server being 
> updated with up2date.
> 
> Is it safe just to delete the old kernel and initrd files from the boot 
> partition and the grub conf file?

Unless you are really hurting for disk space on your boot partition, it 
is safe to leave the extra kernel images there.  If the clutter on your 
grub menu bothers you, you can simply delete them from the grub.conf 
file so they don't show up.  I generally keep 2-3 older kernel images 
around just in case newly installed ones won't boot for some reason.

Alfred gave some good advice for keeping this neat 'n tidy with the 
yum-utils package-cleanup command.



More information about the CentOS mailing list