Re: kernel install/update tries to remove older kernel

Posted by NedSlider on 2009/7/4 11:32:39
Quote:

toracat wrote:
Edit the file /etc/yum/pluginconf.d/installonlyn.conf and look for a line like:

tokeep=5

to keep old kernels up to 5, for example. I believe the default is 2.


Just a quick note that this setting is now called installonly_limit and is in /etc/yum.conf:

[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1

# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h

installonly_limit = 5

This Post was from: https://www.centos.org/newbb/viewtopic.php?forum=37&topic_id=10324&post_id=80334