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.
[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