LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 10-18-2008, 10:07 PM   #1
hemanthv414
Member
 
Registered: Oct 2008
Posts: 37

Rep: Reputation: 15
How do i build a new kernel in for RHEL5


Hello,

I have installed RHEL5-client which has the kernel-2.6.18..
Now i want to download the latest stable kernel. where can i get the kernel rpm from ?
And how do i build the kernel with that new rpm?
 
Old 10-18-2008, 11:43 PM   #2
bcwagne
Member
 
Registered: Feb 2008
Distribution: Debian Testing
Posts: 169

Rep: Reputation: 32
You may be able to use the RHEL repositories to update your kernel, or find another repository with an updated kernel RPM. (I'm not sure...I don't run RHEL.) That would be quickest and easiest. One site you may want to try is www.rpmfind.net.

Failing that, the following steps may help, which closely resemble my first kernel build, and most of the ones after it as well:

1. The kernel source can always be found at www.kernel.org. You can download any version of the kernel from there. The latest is always at the top. Be sure to get the full source package. It will be around 50 MB.

2. Set aside several hours to read about compiling a new kernel for your distro. Make sure you understand what you are doing BEFORE you do it.

3. Set aside several more hours if it is your first kernel build to configure your kernel.

4. Compile the kernel.

5. Configure GRUB or LILO to use the new kernel.

6. Boot the new kernel and find out that you left out a critical component or driver, and scream in agony at the time you used up.

7. Repeat steps 2 through 6 about five times until you have a kernel that works really well.

8. When your kernel works really well, rejoice and hear heavenly choirs singing.

9. Several months later, repeat steps 1 - 8, adding at the beginning great despair at realizing that you somehow lost your old working kernel config.

Seriously though, read lots and don't be too disappointed if/when it doesn't work out perfectly.

I would still try to find a repository to update the kernel before I compiled one.

Good luck.
 
Old 10-19-2008, 12:10 AM   #3
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
Just a slight point that RHEL5 will always have a 2.6.18 kernel, just as RHEL4 was 2.6.9 and so on (see http://kbase.redhat.com/faq/FAQ_85_5859.shtm), so installing a new kernel will de-redhat you install.

OpenSuSe uses a more recent version (2.6.25 from memory) if you are interested.
 
  


Reply



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
Kernel errors on RHEL5 collym Linux - General 1 10-06-2008 12:25 PM
Kernel for RHEL5 tuxianD Red Hat 2 01-18-2008 03:55 PM
Which is the kernel build directory? I Can't find kernel build files crabsody Debian 7 01-09-2007 04:48 AM
RHEL5 debug kernel unixhack Linux - Kernel 3 12-14-2006 09:27 AM
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 08:21 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 05:45 PM.

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