cat /etc/yum.conf [main] (cut) installonly_limit=4 with installonly_limit=4 keep 4 kernels , you may increase the number ...