[CentOS] Eliminate old kernels

Wed Nov 9 15:04:34 UTC 2005
Josh Kelley <joshkel at gmail.com>

On 11/9/05, iagosineiro at yahoo.es <iagosineiro at yahoo.es> wrote:
> 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.

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.

Josh Kelley