How to keep a particular kernel version?

T.C. Hollingsworth tchollingsworth at gmail.com
Thu Feb 23 18:13:01 UTC 2012


On Thu, Feb 23, 2012 at 11:07 AM, enclair <wifienclair at gmail.com> wrote:
> Hi,
>
> I have these three kernels: 3.1.9, 3.2.5 and 3.2.6
> There is a new kernel in -updates (3.2.7).
> If I update to the new kernel, yum will want to remove 3.1.9.
> Is there a possibility to set up yum to keep the older kernel (3.1.9) and to
> remove 3.2.5 instead (the middle one)?
> (There is the possibility to remove the middle kernel before each updates,
> but it's not really convenient).

You could change the installonly_limit in /etc/yum.conf.  If you set
it to 0, yum won't remove any kernels when a new one is installed.
You could then remove unwanted ones manually at your convenience.

-T.C.


More information about the users mailing list