Removing old kernels with yum?

Paul Howarth paul at city-fan.org
Sat May 28 10:27:09 UTC 2005


On Sat, 2005-05-28 at 03:57 +0200, Thomas Zehetbauer wrote:
> I have been using "rpm -qa|grep kernel" and "rpm -e $kernel" for a while
> but I wonder if yum can be configured to treat kernels as normal
> packages, e.g. "installonlypkgs=" in yum.conf (which does not work).

I believe this is actually hard-coded in yum.

One of the consequences of allowing a kernel to be upgraded instead of
installed would be that the currently-running kernel plus all of its
modules would be deleted when the new kernel was added. So any operation
that needed to load a module (e.g. starting ppp if the ppp modules
weren't already loaded) would fail. There might be more significant
issues too (has anyone tried removing their currently-running kernel to
see what happens? not something I intend to try!).

Paul.
-- 
Paul Howarth <paul at city-fan.org>




More information about the users mailing list