Set limit for installed kernel versions in YUM
echo 'installonly_limit=4' > /etc/yum.conf
Sets the installonly_limit to 4 in /etc/yum.conf, restricting the number of kernel versions to keep on the system.
echo 'installonly_limit=4' > /etc/yum.conf
Sets the installonly_limit to 4 in /etc/yum.conf, restricting the number of kernel versions to keep on the system.