Origin


Resu, North Garo Hills, Meghalaya 794108

Monday, 12 May 2014

Remove Old/Multiple Linux Kernels

After an update, there's always a possibility to see some more kernel entries on your GRUB on booting. A quick listing can be done:

# rpm -q kernel 

(the lastest is at the bottom, which also can be produced typing # uname -r )

We next make use of the package-cleanup tool in yum-utils to limit the number of kernels desired. If yum-utils isn't installed, do

# yum install yum-utils

Next set the number of kernels to the desired count (say, 2)

# package-cleanup --old kernels --count=2

Make the amount of installed kernels permanent
# gedit /etc/yum.conf 

and set installonly_limit = 2

No comments:

Post a Comment