CentOS 6.5 upgrade Kernel to 3.10.28

Source: Internet
Author: User

There are many articles on the Internet that upgrade the CentOS kernel, such as "CentOS 6.5 upgrade kernel to 3.10.28", most of them are compiled by download source code, a bit of trouble.

In the Elrepo source of Yum, there are 2 kernel versions of M ain L ine (3.13.1), L ONG-T erm (3.10.28), so choose this version, considering that the long-term is more stable and will be updated for a long time.

1. Import Public key

RPM--import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

2, install Elrepo to CentOS-6.5

RPM-IVH http://www.elrepo.org/elrepo-release-6-5.el6.elrepo.noarch.rpm

3, installation 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 order

vim/etc/grub.conf# grub.conf generated by anaconda## Note DoNot having to rerun grub after making changes to thisfile# notice:you DoNot has A/boot partition. This means that# all kernel and initrd paths is relative to/, eg.# root (hd0,0) # kernel/boot/vmlinuz-version ro root=/dev/sda1# initrd/boot/initrd-[generic-]version.img#boot=/dev/Sdadefault=0Timeout=5Splashimage= (hd0,0)/boot/grub/splash.xpm.gzhiddenmenutitle CentOS (3.10. --1. el6.elrepo.x86_64) Root (hd0,0) Kernel/boot/vmlinuz-3.10. --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-8RD_NO_LVM rd_no_dm rhgb quiet initrd/boot/initramfs-3.10. --1. El6.elrepo.x86_64.imgtitle CentOS (2.6. +-431.3.1. el6.x86_64) Root (hd0,0) Kernel/boot/vmlinuz-2.6. +-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-8RD_NO_LVM rd_no_dm rhgb quiet initrd/boot/initramfs-2.6. +-431.3.1. El6.x86_64.imgtitle CentOS (2.6. +-431. el6.x86_64) Root (hd0,0) Kernel/boot/vmlinuz-2.6. +-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-8RD_NO_LVM rd_no_dm rhgb quiet initrd/boot/initramfs-2.6. +-431. el6.x86_64.img

Confirm the location of the newly installed kernel, then set the default value (starting from 0), generally the newly installed kernel is in the first position, so set default=0.

5. Reboot to see the kernel version number

uname -R3.10. 1. el6.elrepo.x86_64

CentOS 6.5 upgrade Kernel to 3.10.28

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.