In CentOS 6.x, how can I upgrade to Kernel 3.4?

43,665

Solution 1

This action goes against the purpose of Red Hat Enterprise Linux (and thus, CentOS). These enterprise distributions are meant to maintain stable minor versions of the kernel and core packages (glibc, gcc, etc.) in order to provide a stable platform throughout the supported lifecycle of the distribution.

That means that installing a much newer kernel would turn your system into something other than CentOS.

That said, it can definitely be done. The link you posted is a good guide. You should also upgrade to CentOS 6.3 while you're in the process. (6.4 is on the way)

Following your compilation, you should select the newly-compiled kernel at the CentOS boot screen or change the default booting kernel via the default= line in /etc/grub.conf.

Solution 2

If you really must, you can get newer kernels from ElRepo but once you do this you're on your own so to speak. You will be outside of the normal EL support channels and may not be able to get security and bug fixes etc.

Solution 3

When you say "CentOS 6.2 with kernel version 2.6.32" you aren't being entirely accurate:

...there is no one [kernel version] number that accurately represents the RHEL 6 kernel. We take what is upstream; if there are pieces that are not mature, we disable them so they don't disrupt things; and there are some technology pieces that are further ahead that we pull in...

As others have said, changing the kernel goes against the grain of using CentOS/RHEL/OEL etc, but the above also means that by upgrading to 6.3, although you don't change the apparent kernel version you do upgrade the kernel—it's just not possible to do a like-for-like comparison with mainline kernel numbers.

Share:
43,665

Related videos on Youtube

shiva
Author by

shiva

Updated on September 18, 2022

Comments

  • shiva
    shiva over 1 year

    I have a server running CentOS 6.2 with kernel version 2.6.32, but I need to increase my application Performance.

    The Kernel Version 3.4 has x32abi which can improve the performance so i want to upgrade to 3.4 ? Is it possible?

    I tried downloading kernel compiling and installing but still I see the same Kernel version..

    What went wrong? I followed the process in mentioned in the link below.

    http://www.tecmint.com/kernel-3-5-released-install-compile-in-redhat-centos-and-fedora/

    • Danie
      Danie over 11 years
      You might just want to change to a different distro, ie debian, to get the latest kernels. Centos has it's reasons for staying behind the curve.
    • shiva
      shiva over 11 years
      Thanks for the reply Danie you mean to say we can't upgrade the kernal? of please suggest me more Danie i am new i didnt get distro means do you want to suggest different flavour of linux
    • Danie
      Danie over 11 years
      Hi Shiva, you are able to upgrade the kernel as per that link, but it seems that you could've missed some crucial steps. When centos rebooted, did you choose the new 3.x kernel from the boot list?
    • shiva
      shiva over 11 years
      no which file i need to change to choose the kernal version at boot?
    • user
      user over 11 years
      @Danie If you want more recent software versions, Debian too would be a poor choice since they favor stability over newness.
    • Yann Sagon
      Yann Sagon over 10 years
      I'm always very scared when I see people that want to improve the performance of an application by upgrading the kernel. Most of the time the problem lies in the application itself.
  • shiva
    shiva over 11 years
    if i can use another linux which will be better but i need Default kernal version 3.4 which has x32abi package