In CentOS 6.x, how can I upgrade to Kernel 3.4?
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:
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.
Related videos on Youtube
shiva
Updated on September 18, 2022Comments
-
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 over 11 yearsYou 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 over 11 yearsThanks 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 over 11 yearsHi 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 over 11 yearsno which file i need to change to choose the kernal version at boot?
-
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 over 10 yearsI'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 over 11 yearsif i can use another linux which will be better but i need Default kernal version 3.4 which has x32abi package