PDA

View Full Version : Uninstalling the kernel...



linux4me
14th May 2008, 01:45 PM
I have two kernels and I'd like to remove the older one. Exactly how do I go about it? (I chose virtualization during my FC7 installation) Consequently can anyone give me an rpm solution for kernel-headers for this kernel (2.6.21-1.3194) on an i686 machine? I have the headers for an i386. I want to know if it really even matters so long as it's x86. Thanks for the help. I appreciate it a lot

bingoUV
14th May 2008, 02:50 PM
The following gives you the kernel packages (and headers, devel etc).


rpm -qva | grep kernel


Look for the older kernel , and remove it like so


su -
rpm -ve kernel<version>


I don't understand your post after this. If you want to install kernel-headers,


su -
yum install kernel-headers

This should install headers for the latest version of kernel you have

ivancat
14th May 2008, 05:17 PM
if you want to remove a kernel of the specified version, you have to:
1. Remove /boot/initrd-<kernel_ver> /boot/system.map-<kernel_ver> /boot/vmlinuz-<kernel_ver>
2. Remove /lib/modules/<kernel_ver>
3. (If exists) /usr/src/kernels/<kernel_ver>
4. Edit /boot/grub/grub.conf (remove old kernel entry)

p.s. to do all this you must boot with kernel, other than <kernel_ver> (in other words, not with the one you want to delete)

and to manage kernel-headers you may use yum

OralDeckard
14th May 2008, 06:55 PM
You are normally sopposed to have two kernels; the most recently installed and the previous version for incase you need to fall back to it.

The next time you upgrade your kernel the oldest will be removed, leaving the lastest two.

But if you really want to remove the other kernel, how about starting in the kernel you want to keep,
running yumex,
doing a search on "kernel"
unchecking the kernel you want removed
then click on "process" ?

bingoUV
14th May 2008, 06:55 PM
if you want to remove a kernel of the specified version, you have to:
1. Remove /boot/initrd-<kernel_ver> /boot/system.map-<kernel_ver> /boot/vmlinuz-<kernel_ver>
2. Remove /lib/modules/<kernel_ver>
3. (If exists) /usr/src/kernels/<kernel_ver>
4. Edit /boot/grub/grub.conf (remove old kernel entry)

p.s. to do all this you must boot with kernel, other than <kernel_ver> (in other words, not with the one you want to delete)


Really? What is package management for?


man rpm

ivancat
14th May 2008, 07:42 PM
Really? What is package management for?


man rpm

*cough* well, erm... it's the matter of taste :P

bingoUV
19th May 2008, 01:33 PM
*cough* well, erm... it's the matter of taste :P

Oh, :) you could scare a newbie badly with your taste. To each his own.