Two ways to CentOS kernel version upgrades

Source: Internet
Author: User
The first method is upgraded to the latest version and is installed faster
1. Import KEY
rpm?--importhttps://www.elrepo.org/rpm-gpg-key-elrepo.org
2. Install Elrepo yum source
rpm-uvh http:// WWW.ELREPO.ORG/ELREPO-RELEASE-7.0-2.EL7.ELREPO.NOARCH.RPM
3. Install kernel
Yum--enablerepo=elrepo-kernel install Kernel-ml-devel kernel-ml-y
4. View setting default boot order
awk-f\ ' $1== ' menuentry ' {print $} '/etc/ Grub2.cfg, the display result should be the updated version of the kernel on top, execute the following command:
grub2-set-default 0
5. Reboot
reboot
The second method is compiled and installed for a longer period of time
 https://www.kernel.org/Download the specified version https://www.kernel.org/pub/linux/kernel/v4.x/[root@node] #yum Groupinstall " Development Tools "-y [Root@node] #yum install-y elfutils-libelf-devel BC openssl-devel ncurses-devel wget ntpdat e vim net-tools [Root@node] #tar-xf linux-4.13.tar.gz-c/usr/src/[Root@node] #cd/usr/src/linux-4.13/[Root@node #cp/boot/config-3.10.0-327.el7.x86_64. config this is for the original version [Root@node] #sh-c ' Yes ' | Make Oldconfig ' [Root@node] #make-j20 bzimage [Root@node] #make-j20 modules [Root@node] #make-j20 Modules_install [root@n ODE] #make Install [root@node] #awk-f\ ' $1== ' menuentry ' {print $} '/etc/grub2.cfg [Root@node] #grub2-set-default 0 [root @node] #uname-A [Root@node] #reboot 
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.