This blog has moved! Redirecting...
You should be automatically redirected. If not, visit http://scrolls.mafgani.net/ and update your bookmarks.

Thursday, February 09, 2006

Removing old kernels using yum

I found this neat and tidy method of removing old kernels. Before, I used to do this:


[root@localhost ~]# rpm -e kernel_name


But I have just come across a way of doing the same using yum. That way, you save time because you don't have to remove each one manually. It also prevents you from making mistakes and leaves the latest two kernels intact. First, you need to get "yum-utils".


[root@localhost ~]# yum install yum-utils


Then, simply remove all your old kernels!


[root@localhost ~]# package-cleanup --oldkernels


And you're done already! To check which kernels your system still retains, do:


[root@localhost ~]# rpm -qa | grep kernel


Nice, no?

0 Comments:

Post a Comment

<< Home