yish8213
3/21/2015 - 8:10 AM

CentOS 7: removing old kernels

removing old kernels on centos

#http://www.if-not-true-then-false.com/2012/delete-remove-old-kernels-on-fedora-centos-red-hat-rhel/

#check installed kernels
rpm -q kernel

#install yum-utils
yum install yum-utils

#package cleanup
package-cleanup --oldkernels --count=2

#make amount of installed kernels permanent
#edit /etc/yum.conf - installonly_limit=2