[CentOS] Eliminate old kernels

Wed Nov 9 16:13:23 UTC 2005
Matt Hyclak <hyclak at math.ohiou.edu>

On Wed, Nov 09, 2005 at 10:04:34AM -0500, Josh Kelley enlightened us:
> > Is there any commad for eliminate old kernels from grub instead of edit
> > manually grub.conf and eliminate the files from /boot?
> 
> Yum-utils includes a script called package-cleanup.  Running
> "package-cleanup --oldkernels" will take care of this for you, without
> having to check kernel versions by hand.
>

Good to know.

> You can get yum-utils from
> http://linux.duke.edu/yum/download/yum-utils/.  It's also part of
> Fedora Extras; since it's a noarch package, you could probably just
> download the RPM from there and install it on a CentOS 4 box, although
> I haven't tried this.
> 

Only if the versions of python are the same.

Rebuilding the src.rpm is probably better. Karanbir might also have it in
his repository at http://centos.karan.org.

Matt

-- 
Matt Hyclak
Department of Mathematics 
Department of Social Work
Ohio University
(740) 593-1263