Nicolas Thierry-Mieg wrote on 24/08/2015 00:24:
installonly_limit=3
This parameter works for standard kernel images, but does not work for rescue images:
<snip> > Is there a way to keep rescue images within a certain limit?
man yum.conf , search for installonlypkgs (that's on centos6, might vary in 7)
According to man page:
/* installonlypkgs List of package provides that should only ever be installed, never updated. */
This is not the case for two reasons: (1) I want to install rescue kernel image and (2) there is no rpm package for rescue kernel