[Yum] Re: So many kernels, so little time...

Tony Mountifield tony at softins.clara.co.uk
Fri Feb 6 17:39:18 UTC 2004


In article <1075996227.13371.98.camel at angua.localnet>,
Nigel Metheringham <yum at lists.dulug.duke.edu> wrote:
> After a while of running your system with automatic updating you end up
> with a number of kernels installed.  [If you are tracking the bleeding
> edge stuff you end up with 2 a day (SMP)].
> 
> Is there a nice neat way to purge off old kernels keeping a smaller
> number of versions?

Not automatically, but it's easy by hand:

# rpm -qa kernel\*
kernel-pcmcia-cs-3.1.31-13
kernel-2.4.20-24.9
kernel-2.4.22-1.2149.nptl
kernel-2.4.22-1.2129.nptl
kernel-2.4.22-1.2140.nptl
kernel-2.4.22-1.2135.nptl
# rpm -e kernel-2.4.20-24.9 kernel-2.4.22-1.2129.nptl kernel-2.4.22-1.2135.nptl
# rpm -qa kernel\*
kernel-pcmcia-cs-3.1.31-13
kernel-2.4.22-1.2149.nptl
kernel-2.4.22-1.2140.nptl
#

It updates grub.conf and/or lilo.conf too.

Cheers,
Tony

-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the Yum mailing list