Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In RHEL6, the kernel is 2.6.32. What is the procedure to compile your own kernel?

share|improve this question
    
Why do you need your own kernel? What are you trying to archive? – rvs Apr 22 at 17:08

I would take a look a these CentOS howtos to get started. CentOS is the community edition of RHEL. It's pretty much identical to what Red Hat provides in their version of the distro.

share|improve this answer
    
Thank you for your reply. Can i go ahead with the same thing or i have to change any commands accordingly? – subbarao Apr 29 '13 at 9:22
1  
The commands should all be the same. – slm Apr 29 '13 at 9:23
1  
But note that newer kernels might require changes in compiler, glibc, and assorted userland utilities. – vonbrand Apr 29 '13 at 14:25

If you need a newer kernel, elrepo might be helpful and save you the grief:

http://elrepo.org/tiki/tiki-index.php

http://elrepo.org/linux/kernel/el6/

Don't expect it to necessarily be flawless. I tried one of the newer kernels on a CentOS 5 machine recently, for some reason the NFS server would not start. I ended up digging-in and rebuilt that server in CentOS 7.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.