LinuxQuestions.org
Visit Jeremy's Blog.
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 05-03-2007, 04:16 PM   #1
Doug Vitale
Member
 
Registered: Feb 2007
Distribution: Fedora 10/Mint 5 KDE
Posts: 69

Rep: Reputation: 16
How to upgrade Linux kernel on Fedora 6?


According to kernel.org, the latest stable release is 2.6.21.1. I just updated my kernel today (May 3) and when I enter uname -r, it says the kernel version is 2.6.20-1.2944.fc6. My software updater application says there are no updated packages for my system.

Any suggestions? Thanks.
 
Old 05-03-2007, 04:28 PM   #2
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
Quote:
Originally Posted by Go2doug
According to kernel.org, the latest stable release is 2.6.21.1. I just updated my kernel today (May 3) and when I enter uname -r, it says the kernel version is 2.6.20-1.2944.fc6. My software updater application says there are no updated packages for my system.

Any suggestions? Thanks.
if you *really* want to upgrade to the latest kernel, you'll need to download the sources, build the kernel, then update your boot loader (probably grub) to load the new kernel.

Most linux distros take a while to release new kernels through their official updates. Typically it's only done when there's a significant improvement or security fix. Upgrading the kernel can have adverse affects on drivers and such, so lots of people prefer to only upgrade when necessary.

I would suggest that, unless you have a *really* good reason, there's no need to upgrade the kernel.
 
Old 05-03-2007, 05:25 PM   #3
axelfc
Member
 
Registered: Jan 2006
Distribution: ArchLinux
Posts: 175

Rep: Reputation: 34
Reboot and select the new kernel from the grub menu. Then try again uname -r
 
Old 05-03-2007, 06:15 PM   #4
bouchecl
Member
 
Registered: Nov 2005
Location: Quebec
Distribution: Fedora Core / Ubuntu
Posts: 37

Rep: Reputation: 15
BrianK is quite right.

Although the "vanilla" a.k.a the "Linus" kernel, v. 2.6.21 has been released 10 days ago, it will take a few more days/weeks until distros pick it up, compile it and release it for general use. It gives the various Linux vendors some time to add their black magic to the mix (by turning on/off various parameters) before compiling. There is usually no rush to upgrade and I trust the kernel masters at Red Hat will do a better job than me in optimizing the next Fedora kernel, just because they've been doing it for quite a while.

If you're still interested in building a vanilla kernel, I'd suggest you read Linux Kernel in a Nutshell, by Greg Kroah-Hartman, a kernel developer himself. You can buy it from O'Reilly or download PDF chapters on the author's web site.
 
Old 05-04-2007, 09:38 AM   #5
Doug Vitale
Member
 
Registered: Feb 2007
Distribution: Fedora 10/Mint 5 KDE
Posts: 69

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by axelfc
Reboot and select the new kernel from the grub menu. Then try again uname -r
I actually have 3 Linux distro's installed, and since I installed Kubuntu last, when I boot up I get Kubuntu's grub.

I updated the kernel of my OpenSUSE installation, and now when I select that OS in GRub, it says "Error 15: file not found". The grub entry for openSUSE is "2.6.18.8-0.1" and I'm sure the kernel update changed that version number, so now grub won't see "2.6.18.8-0.1" since it doesn't exist anymore. Anyone know how I can fix this?
 
Old 05-04-2007, 10:13 AM   #6
axelfc
Member
 
Registered: Jan 2006
Distribution: ArchLinux
Posts: 175

Rep: Reputation: 34
Log in Kubuntu and mount the SUSE partition. Look in there under /boot for some file names such as vmlinuz-2.6.18.8-0.1 and initrd-2.6.18.8-0.1.img, in the place of 2.6.18.8-0.1 there should be the new kernel. Now edit your Kubuntu's menu.lst and replace the old kernel with the new one.
 
Old 05-04-2007, 10:45 AM   #7
Doug Vitale
Member
 
Registered: Feb 2007
Distribution: Fedora 10/Mint 5 KDE
Posts: 69

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by axelfc
Log in Kubuntu and mount the SUSE partition. Look in there under /boot for some file names such as vmlinuz-2.6.18.8-0.1 and initrd-2.6.18.8-0.1.img, in the place of 2.6.18.8-0.1 there should be the new kernel. Now edit your Kubuntu's menu.lst and replace the old kernel with the new one.
Awesome advice! I just had to change the "1" at the end of the version number to "3" and now openSUSE boots up. Thanks a lot.
 
Old 05-04-2007, 10:50 AM   #8
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
Although I broadly agree with BrianK and bouchecl, if you still want to give it a try to build a custom kernel, it is plenty of guides out there to help you. Here's one: http://www.digitalhermit.com/linux/K...ild-HOWTO.html

I am currently running a custom 2.6.20.11 on my home AMD Athlon 3200+ machine. I tried to configure and remove too many of unneeded drivers at first. I removed too much, so it failed to recognise my sata raid setup. I had to reboot to the old kernel, rebuild the kernel with a previous config instead.

So there are some pitfalls, but my system is fine now

Good luck if you go ahead.

By the way, Fedora 7 is coming in 20 days time with the new 2.6.21 kernel, so you can wait and upgrade to that instead too...
 
Old 05-04-2007, 07:54 PM   #9
bouchecl
Member
 
Registered: Nov 2005
Location: Quebec
Distribution: Fedora Core / Ubuntu
Posts: 37

Rep: Reputation: 15
I picked this up in the latest Fedora News, which might be of interest to the readers of this thread:

Quote:
DaveJones points out in his blog[1],

"A few days ago I fixed up the script that grabbed the latest kernel I built for Fedora and dumped it onto my people.redhat.com page. F7 users can now install the repo file[2] into /etc/yum.repos.d/ and have it grab those fresh kernels as soon as they're built without having to wait a whole day to get them from rawhide."

[1] http://kernelslacker.livejournal.com/77038.html

[2] http://people.redhat.com/davej/kerne...c7/kernel.repo
 
  


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
Fedora Kernel Upgrade stratcat Linux - Kernel 4 09-19-2006 10:37 PM
Newbie Fedora kernel upgrade help kevinb583 Linux - Newbie 2 10-12-2004 01:43 AM
fedora core kernel upgrade- no sound ksgill Linux - Newbie 2 03-31-2004 11:22 PM
Fedora Core 1 clean install, upgrade the kernel or no? spiffdoodle Fedora 2 02-25-2004 07:43 PM

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

All times are GMT -5. The time now is 01:14 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