Removing old kernels using yum
I found this neat and tidy method of removing old kernels. Before, I used to do this:
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".
Then, simply remove all your old kernels!
And you're done already! To check which kernels your system still retains, do:
Nice, no?
[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