Handy Tips and Tricks
By default, when doing yum updates, only 2 kernels remain after the update. Example, current kernel that you are running and the new updated kernel with any existing kernel versions being removed. Sometimes you might want more than 2 kernels, for testing or any other reasons. To enable more kernals, simply add the following line to the /etc/yum.conf file:
installonly_limit=10
Where the 10 represents the number of maximum number allowed, in the case above, I set the maximum number to 10.
Therefore, the /etc/yum.conf file should look something like:
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800
installonly_limit=10
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d