[BlueOnyx:05352] Re: Removing and old Kernel
Gerald Waugh
gwaugh at frontstreetnetworks.com
Tue Sep 7 09:38:38 -05 2010
On Mon, 2010-09-06 at 12:52 -0500, Chris Gebhardt - VIRTBIZ Internet
wrote:
> 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 is correct, and this is the best way.
I used to delete the files from /boot, sure that was wrong.
I tried Chris's method works great
Thanks Chris
--
Gerald
More information about the Blueonyx
mailing list