LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-13-2008, 02:25 PM   #1
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Rep: Reputation: 53
Why so many kernel updates?


Hi everyone,

Just curious, really, but I have had Fedora 8 install for just over a week now and there have been four kernel updates, requiring an update to the Menu.lst in grub (from another distro on the same HD) and a reboot. Not really a problem, but the grub screen is getting littered with unused Fedora kernels.

Why is the kernel updated so often for Fedora? I run Ubuntu and PCLinuxOS and neither update the kernel so often. I think this edition of Fedora is terrific and I will continue to use it in spite of this minor inconvenience, but is it really necessary to update the kernel so often?

On the same note, I now have three unused kernels and would like to know how to safely delete the ones I will not be using.

Any help appreciated.

Bob
 
Old 02-13-2008, 02:39 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,352

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
Quote:
Originally Posted by BobNutfield View Post

I now have three unused kernels and would like to know how to safely delete the ones I will not be using.
Get a list of all of your installed packages with this command:

rpm -qa | sort | less

Then remove any unneeded kernels with this command:

rpm -e packagename

I don't know if removing the rpm will also delete the grub entry. If it doesn't then edit /boot/grub/menu.lst to remove the unneeded grub entries.

----------------------
Steve Stites
 
Old 02-13-2008, 02:56 PM   #3
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Original Poster
Rep: Reputation: 53
Thank you, jailbait. That is the information I needed.

Regards

Bob
 
Old 02-13-2008, 03:12 PM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
That's strange. When I update my Fedora kernel, YUM automatically remove any kernel except the one being updated, and updates the grub.conf file at the same time. (Note that Fedora does not use the older menu.lst for GRUB control.)

As to why Fedora get such frequent kernel updates, I suspect it because Fedora is the Beta test site for Red Hat Linux, and the developers are trying to stay on the cutting (or, perhaps, "bleeding", eh?) edge of everything.
 
Old 02-13-2008, 03:27 PM   #5
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Original Poster
Rep: Reputation: 53
Thanks, PTrenholm. I should have explained that I didn't use Fedora's Grub when I installed. I have the Grub from PCLinuxOX on the MBR and just have an entry for Fedora. Fedora boots much faster for me because I don't use it's default splash screen. Just text to boo until the login screen arrives. I wonder if this fact has anything to do with the fact that Fedora just leaves the old kernels in the boot menu?

Bob
 
Old 02-13-2008, 03:45 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,352

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
Quote:
Originally Posted by BobNutfield View Post

I wonder if this fact has anything to do with the fact that Fedora just leaves the old kernels in the boot menu?
The kernel is partially transient. From time to time it loads and uses a driver module which is part of the kernel. If Fedora (or any distribution) removed the old kernel during an update then you would have problems the next time a module needed to be loaded. So you can't remove the old kernel until you have rebooted into the new kernel.

--------------------
Steve Stites
 
Old 02-13-2008, 04:01 PM   #7
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Original Poster
Rep: Reputation: 53
Thanks, jailbait. That makes sense. Anyway, I always record the necessary new kernel information and mount the PCLinuxOS partition make the new entries into grub BEFORE I reboot. Learned my lesson about that years ago. None of this really causes a problem, just a little inconvenience, which, in my opinion, is minor compared to the quality that I think Fedora delivers.

Regards

Bob
 
Old 02-13-2008, 04:23 PM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
The reason Fedora has so many updates is that it is a development distro. By its very nature it is always in flux. This is also why support for any one version is limited to about one year.
 
Old 02-13-2008, 05:22 PM   #9
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
The 2.6.23.15 kernel version seems to have disappeared from the repositories, so maybe keeping the old kernel around for a while might be a "good thing" in any case, eh?
 
Old 02-13-2008, 05:35 PM   #10
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Bob, what I do on my multiboot testing PC is to have a symlink in /boot to the kernel and another to initrd, and when an update comes through, I just create new symlinks to the new kernel/initrd. I also have symlinks kernel.old and initrd.old to the previous version in case of problems.

Then change grub to use the symlinks, and you don't ever need to update menu.lst which, I assume, is on anothe partition that isn't usually mounted.
 
Old 02-13-2008, 05:44 PM   #11
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Fedora normally only keeps the two most recent kernels in the repo. So I would agree about hanging onto some older kernels. Yum has a setting somewhere that tells it how many to hang onto (will not apply to OP).
 
Old 02-13-2008, 05:44 PM   #12
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I'm using SuSE 10.3, and there have been a number of kernel "Security" updates in the past two weeks. You probably have noticed the same thing.
 
Old 02-14-2008, 03:51 PM   #13
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Original Poster
Rep: Reputation: 53
Tahnks to everyone for all the responses/comments. I am clear about it now.

Billymayday: your suggestion about the sym link to the new kernels is an interesting one that I will try. Actually, mounting the partition that holds grub is quite easy and when I need to edit it, I just mount it right in Fedora and it has worked just fine.

regards

Bob
 
  


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
How do I keep all kernel updates farpoint Ubuntu 2 08-15-2007 12:43 PM
how are kernel updates handled? nick623 Ubuntu 8 03-16-2007 09:45 PM
Updates with kernel... cmgannon26 Slackware 2 10-01-2004 02:55 PM
kernel updates? FLOODS Mandriva 3 10-05-2003 01:11 PM
RHL Kernel Updates LarryNY1 Linux - General 12 03-21-2003 05:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 07:32 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
Open Source Consulting | Domain Registration