[CentOS] LIMITING NUMBER OF KERNEL VERSIONS RETAINED

Sun Jan 13 08:09:12 UTC 2008
Robert - elists <lists07 at abbacomm.net>

> Subject: [CentOS] LIMITING NUMBER OF KERNEL VERSIONS RETAINED
> 
> Hi
> 
> Some time ago there was a discussion on the above subject. I have
> scanned the past few month's mailing list archives and cannot find the
> relevant mail(s).
> 
> 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?
> 
> TIA
> 
> ChrisG

Chris

I dunno answer to limit kernels retained.

No, simple deletion is not a good idea.

What we do is this

rpm -qa | grep kernel

Then we use yum to remove the ones we do not need

yum remove kernel-whatever-version-etc

and/or other items as necessary

 - rh