[BlueOnyx:05342] Re: Removing and old Kernel
Chris Gebhardt - VIRTBIZ Internet
cobaltfacts at virtbiz.com
Mon Sep 6 12:52:13 -05 2010
Richard Morgan wrote:
> Hi again
>
> Thank you both (all) so much for your help. No wonder I couldn't find
> anything for 'yum remove kernel' ... it's 'rpm' :o)
Hi Richard,
I actually prefer to use yum to remove the old kernels since it will
keep the yum database current. Not a huge deal, but just cleaner. The
command goes like this:
# yum remove kernel-xxx.y.z.etc
where "kernel-xxx.y.z.etc" = the name of your kernel to remove. See
below for a sample.
*SEARCH FOR INSTALLED KERNELS*
[root at server ~]# rpm -qa | grep "kernel"
kernel-2.6.18-194.11.1.el5
kernel-2.6.18-194.8.1.el5
*IDENTIFY RUNNING KERNEL*
[root at server ~]# uname -r
2.6.18-194.11.1.el5
*REMOVE UNNEEDED KERNEL(s)*
[root at server ~]# yum remove kernel-2.6.18-194.8.1.el5
Loaded plugins: fastestmirror
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package kernel.i686 0:2.6.18-194.8.1.el5 set to be erased
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository
Size
================================================================================
Removing:
kernel i686 2.6.18-194.8.1.el5 installed
44 M
Transaction Summary
================================================================================
Remove 1 Package(s)
Reinstall 0 Package(s)
Downgrade 0 Package(s)
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : kernel
1/1
Removed:
kernel.i686 0:2.6.18-194.8.1.el5
Complete!
[root at server ~]#
HTH,
--
Chris Gebhardt
VIRTBIZ Internet Services
Access, Web Hosting, Colocation, Dedicated
www.virtbiz.com | toll-free (866) 4 VIRTBIZ
More information about the Blueonyx
mailing list