yum question - install or upgrade

Kam Leo kam.leo at gmail.com
Mon Dec 24 21:30:11 UTC 2007


On Dec 24, 2007 9:02 AM, adrian kok <adriankok2000 at yahoo.com.hk> wrote:
> Hi
>
> I install new kernel to use yum
>
> Which command should I use
>
> yum install kernel

Use if you know the version.

> or
> yum upgrade kernel

Use if you do not.

> I want to keep the old kernel

Be ware! Yum may trap you with its default settings. You might be
better off downloading the desired kernel and installing with "sudo
rpm -ivh kernel-xxx,xxx.rpm".

> thank you

Additional information:

The default yum setting for the number of kernels to keep is 2. When
you do an upgrade or install only the current kernel (the one that you
are running) and the new kernel (one being installed ) will be left on
your system. Any other kernels will be removed. If you want to keep
more than just two you need to edit /etc/yum.conf and change the value
of installonly_limit. Set the value to zero (0) if you want to keep
all kernels that you have downloaded. (FC6 users need to edit
/etc/yum/plugin.conf.d/installonlyn.conf and change the value of
tokeep.)




More information about the users mailing list