Super User is a question and answer site for computer enthusiasts and power users. 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

As i have seen many changes and improvement in kernel 3.xx

The improvement i like is dmcache which introduced in kernel 3.9

I have 3 server with centos installed on all machine

Centos is still using old kernel which is 2.6.xx

I'm wondering why they are not upgrading kernel?

Resources

share|improve this question
1  
That just isn't how most distros work. The stick with the version they had when it was relesaed, and just back port security issues. This is about stability. – Zoredache Feb 4 '14 at 8:13
    
I would add, unless you're using a rolling distro, this is true of most distributions, especially with enterprise distributions like RHEL (which centos is a derivative of). People who run these distros are more concerned with stability and knowing everything will work, than having the latest features. – Journeyman Geek Feb 4 '14 at 8:17
    
If you really want a newer kernel, why don't you just install one? – FSMaxB Feb 4 '14 at 9:24
up vote 16 down vote accepted

CentOS 6 is based on RHEL 6, which was released in 2010. Within a major release, the goal is compatibility and not introducing breaking changes as the target audience is enterprises that value stability over features. As you can see from the version history, they don't introduce new kernel versions within a major release (but some fixes are backported), so it's likely RHEL 6/CentOS 6 will stay on 2.6.32 (a stable kernel version).

To get a newer kernel, you'll have to wait for RHEL 7/CentOS 7 and upgrade. It will include kernel 3.10 (another stable kernel release).

Since Red Hat supports each release for 10 years (or 13 with extended support, e.g. RHEL 6 until 2023), it's no surprise they don't release a new major version every year.

share|improve this answer

They do appear to have done a newer one last month:

http://vault.centos.org/6.5/xen4/Source/SPackages/kernel-3.10.34-11.el6.centos.alt.src.rpm

Grab it, then:

rpm -ivh kernel-3.10.34-11.el6.centos.alt.src.rpm

rpmbuild -ba ~/rpmbuild/SPECS/kernel.spec

rpm -Uvh ~/rpmbuild/RPMS/x86_64/kernel-*

share|improve this answer

There may be a disconnect here.

CentOS, like any enterprise linux, is geared toward stability and, importantly, compatibility throughout the major release (review Semantic Versioning).

In order to maintain compatibility, software released within a given major release will not suddenly be revised to a completely different baseline. In addition to breaking any kind of certification in the upstream distro (RHEL) with ISVs, the nightmares in (in order) testing and then support will create an untenable labour issue for anyone trying to actually support it.

If you need last week's code drop, you may want to consider a project with a release cycle more like a mayfly and less like infrastructure. Your upstream and downstream support will change dramatically, and consistently delivering a product may become a moving target, but this may be a great experience. Maybe look at this month's Fedora, or whichever mubuntian deriv is fashionable.

EL8 will of course have a newer kernel, and you may want to use Fedora in your test environment so that you can properly release on EL8 when Fedora's promoted to EL.

share|improve this answer
    
Please be aware you have posted an answer to a question that is very old and has an accepted answer. Although there is nothing wrong with doing so, just be aware you may not get a response. – CharlieRB Apr 8 at 18:12
1  
Yep. Couldn't respond to the 'middle of 2015' comment but it's a constant question from people who just don't get it. Just like Einstein was really bad at being a fish, Enterprise Linux distros are really bad at staying stable and compatible throughout their lifespan if they gobble up this week's release. It's the obvious nature of the logic that drives me. – user2066657 Apr 10 at 2:17

It has been the middle of 2015, The version 7 of CentOS has been released for a long time and a major upgrade of Linux kernel -- 4.0 -- was released about two months ago, so I think it's time we keep up with the pace of software development. If CentOS does not want to upgrade the kernel because of steadiness consideration for example, let's do it ourselves!

I'm using CentOS 7 with 3.10.0 kernel. Following the article here, I successfully upgraded my CentOS 7 to the latest 4.0.5 kernel. It works very well on my machine. To simply put, the steps to upgrade the kernel to 4.0.5 on CentOS 7 is:

(1)rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

(2)rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

(3)yum --enablerepo=elrepo-kernel install kernel-ml

(4)reboot

(5) In the boot menu, select 4.0.5 kernel (usually in the 1st line).

After boot, use uname -r to check the new kernel version.

PS: That article also contains ways to upgrade kernel to 4.0.5 on ubuntu.

share|improve this answer
1  
If you do want to track the latest Linux kernel, there are operating systems that track it, and you'd be better off following an alternative instead of customizing CentOS. See wiki.ubuntu.com/Kernel/MainlineBuilds for one such example. – Stefan Lasiewski May 3 at 23:47

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.