Linux – yum update kernel without removing old

centoskernellinuxrpmyum

When I yum update it wants to remove the oldest of the 3 kernel I have and upgrade to a new.

Is it possible to get yum not to remove old kernels?

Best Answer

In /etc/yum.conf set installonly_limit=3. Quoting from the documentation:

installonly_limit Number of packages listed in installonlypkgs to keep installed at the same time. Setting to 0 disables this feature. Default is ’0’. Note that this functionality used to be in the "installonly" plugin, where this option was altered via. tokeep. Note that as of version 3.2.24, yum will now look in the yumdb for a installonly attribute on installed packages. If that attribute is "keep", then they will never be removed.

Related Topic