Use yum to quickly upgrade CentOS6.5 kernel to 3.10.28 ELRepo in yum. There are two kernel versions: mainline (3.13.1) and long-term (3.10.28). considering that long-term is more stable, will be updated for a long time, so select this version. 1. import publickeyrpm -- importhttps: // www.elrepo.org/RPM-GPG-KEY
Use yum to quickly upgrade CentOS 6.5 kernel to 3.10.28
In the ELRepo source of yum, there are two kernel versions: mainline (3.13.1) and long-term (3.10.28). considering that long-term is more stable and will be updated for a long time, select this version.
1. import public key
Rpm -- import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
2. install ELRepo in CentOS-6.5
Rpm-ivh http://www.elrepo.org/elrepo-release-6-5.el6.elrepo.noarch.rpm
3. install kernel-lt (lt = long-term)
Yum -- enablerepo = elrepo-kernel install kernel-lt-y
Or install kernel-ml (ml = mainline)
Yum -- enablerepo = elrepo-kernel install kernel-ml-y
4. edit the grub. conf file and modify the Grub boot sequence.
Vim/etc/grub. conf
# Grub. conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a/boot partition. This means that
# All kernel and initrd paths are relative to/, eg.
# Root (hd0, 0)
# Kernel/boot/vmlinuz-version ro root =/dev/sda1
# Initrd/boot/initrd-[generic-] version. img
# Boot =/dev/sda
Default = 0
Timeout = 5
Splashimage = (hd0, 0)/boot/grub/splash.xpm.gz
Hiddenmenu
Title CentOS (3.10.28-1. el6.elrepo. x86_64)
Root (hd0, 0)
Kernel/boot/vmlinuz-3.10.28-1.el6.elrepo.x86_64 ro root = UUID = 0a05411f-16f2-4d69-beb0-2db4cefd3613 rd_NO_LUKS KEYBOARDTYPE = pc KEYTABLE = us rd_NO_MD crashkernel = auto LANG = en_US.UTF-8
Rd_NO_LVM rd_NO_DM rhgb quiet
Initrd/boot/initramfs-3.10.28-1.el6.elrepo.x86_64.img
Title CentOS (2.6.32-431.3.1.el6.x86 _ 64)
Root (hd0, 0)
Kernel/boot/vmlinuz-2.6.32-431.3.1.el6.x86_64 ro root = UUID = 0a05411f-16f2-4d69-beb0-2db4cefd3613 rd_NO_LUKS KEYBOARDTYPE = pc KEYTABLE = us rd_NO_MD crashkernel = auto LANG = en_US.UTF-8 r
D_NO_LVM rd_NO_DM rhgb quiet
Initrd/boot/initramfs-2.6.32-431.3.1.el6.x86_64.img
Title CentOS (2.6.32-431. el6.x86 _ 64)
Root (hd0, 0)
Kernel/boot/vmlinuz-2.6.32-431.el6.x86_64 ro root = UUID = 0a05411f-16f2-4d69-beb0-2db4cefd3613 rd_NO_LUKS KEYBOARDTYPE = pc KEYTABLE = us rd_NO_MD crashkernel = auto LANG = zh_CN.UTF-8 rd_NO
_ LVM rd_NO_DM rhgb quiet
Initrd/boot/initramfs-2.6.32-431.el6.x86_64.img
Check the location where the kernel is installed, and set the default value (starting from 0). Generally, the newly installed kernel is in the first position, so set default to 0.
5. restart and check the CentOS 6.5 kernel version.
[Root @ dev ~] # Uname-r
3.10.28-1. el6.elrepo. x86_64