LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to remove a kernel version? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-remove-a-kernel-version-274954/)

Lead Expression 01-07-2005 05:42 AM

How to remove a kernel version?
 
Erroneously I've downloaded and installed kernel 1.681 for my Fedora Core 3. Now all changes I brought to the previous version (1.667) are lost. Besides my chainloader, now, has as default boot this new version (instead of Win, as previously). How can I delete new version of this kernel? Simply removing the corrispondent kernel directory? And how can I reset chainloader to the previous default boot?

I hope you could understand what I tried to explain... My english is not so good... ;)

Thanx
Nik

bigjohn 01-07-2005 05:54 AM

Grub ?????

With my system, if I upgrade the kernel I usually do it so it puts a new entry into the /boot/grub/grub.conf. Normally I have "chainloader +1" set so the default is the second OS listed (windows in my case). But after the new entry has been made, it puts it down one level so I'd have to change it to chainloader +2. Obviously, I don't bother, I just delete the older entry (or you could just comment it out).

That way I can still boot into the old kernel version if I want too.

I usually have it, so that I just have the new version and the most recent of the older versions, everything else gets deleted.

Maybe that helps a little ??

regards

John

MasterC 01-07-2005 05:58 AM

Seriously, 1.667? Why are you running 1.x kernels on FC3? Is there even filesystem support in there that you'd need for modern technology?

I'm guessing you are referring to something else, feel free to correct me.

Cool

Lead Expression 01-11-2005 02:43 AM

Quote:

Originally posted by MasterC
[B]Seriously, 1.667? Why are you running 1.x kernels on FC3?
I'm sorry... 2.6.9-1.667 :) I thought it was obvious :)

Nik

cs-cam 01-11-2005 02:49 AM

Not necessarily since the latest version is 2.6.10 and anything after the 10 can be distrobution specific or a distro-specific patch :)

Sorry I can't help though, did you compile the new kernel yourself or did you use Fedora's package manager to install it?

Lead Expression 01-11-2005 02:51 AM

Quote:

Originally posted by bigjohn
With my system, if I upgrade the kernel I usually do it so it puts a new entry into the /boot/grub/grub.conf.
I've installed it from Red Hat Network update. I haven't done anything, all automatically... :)

By the way, this is my grub.conf:

###

default=0
timeout=5w
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.9-1.681_FC3)
root (hd0,1)
kernel /boot/vmlinuz-2.6.9-1.681_FC3 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.9-1.681_FC3.img
title Fedora Core (2.6.9-1.667)
root (hd0,1)
kernel /boot/vmlinuz-2.6.9-1.667 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.9-1.667.img
title Other
rootnoverify (hd0,0)
chainloader +1
"grub.conf" 24L, 802C 24,2-9 Fon

###

Other is WinXp... It seems all to be right. Where is the error?

Thank you :)

Nik

Lead Expression 01-11-2005 02:53 AM

Quote:

Originally posted by DJ P@CkMaN
Not necessarily since the latest version is 2.6.10 and anything after the 10 can be distrobution specific or a distro-specific patch :)
Ah, ok ;)

Quote:

Sorry I can't help though, did you compile the new kernel yourself or did you use Fedora's package manager to install it?
Fedora's package manager. I think I'll erase it :|

Nik

adriaanbw 01-11-2005 04:18 AM

To see what kernels you have installed run (and my example):
Code:

$ rpm -qa | grep kernel
kernel-smp-2.6.9-1.724_FC3
kernel-smp-2.6.9-1.667
kernel-utils-2.4-13.1.39

The last entry is not a kernel entry however.

To remove a kernel (say 667 from the example above):
Code:

rpm -e kernel-smp-2.6.9-1.667
You may not have smp compilations but you get the idea. It should also erase it from the bootloader for you too. You will find out on next boot or run this to check:
Code:

less /boot/grub/menu.lst

perfect_circle 01-11-2005 04:39 AM

if grub.conf if you change default=0 to default=2
You should have windows as default.


All times are GMT -5. The time now is 03:12 AM.