LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-07-2005, 06:42 AM   #1
Lead Expression
Member
 
Registered: Dec 2004
Location: Italy
Distribution: Ubuntu 7.04
Posts: 56

Rep: Reputation: 15
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
 
Old 01-07-2005, 06:54 AM   #2
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Rep: Reputation: 45
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
 
Old 01-07-2005, 06:58 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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
 
Old 01-11-2005, 03:43 AM   #4
Lead Expression
Member
 
Registered: Dec 2004
Location: Italy
Distribution: Ubuntu 7.04
Posts: 56

Original Poster
Rep: Reputation: 15
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
 
Old 01-11-2005, 03:49 AM   #5
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
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?
 
Old 01-11-2005, 03:51 AM   #6
Lead Expression
Member
 
Registered: Dec 2004
Location: Italy
Distribution: Ubuntu 7.04
Posts: 56

Original Poster
Rep: Reputation: 15
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
 
Old 01-11-2005, 03:53 AM   #7
Lead Expression
Member
 
Registered: Dec 2004
Location: Italy
Distribution: Ubuntu 7.04
Posts: 56

Original Poster
Rep: Reputation: 15
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
 
Old 01-11-2005, 05:18 AM   #8
adriaanbw
Member
 
Registered: May 2003
Location: Brisbane, Australia
Distribution: Fedora Core 4 with XFCE
Posts: 128

Rep: Reputation: 16
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

Last edited by adriaanbw; 01-11-2005 at 05:20 AM.
 
Old 01-11-2005, 05:39 AM   #9
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 03:54 PM
How to remove old version of GTK? JakeMH Linux - Software 7 05-22-2005 10:49 AM
how do i remove old kernel version? cd1680 Fedora - Installation 3 03-21-2005 11:02 PM
Remove one version of the kernel linux_faq Linux - Software 1 05-24-2004 02:44 PM
Apache version remove zeky Linux - General 1 09-03-2002 06:01 PM


All times are GMT -5. The time now is 09:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration