CentOS Online Upgrade Kernel

Source: Internet
Author: User
Tags gpg

    1. Upgrading the kernel requires the use of Elrepo's Yum source first we import the Elrepo key
      Rpm–import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

    2. Upgrading the kernel requires the use of Elrepo's Yum source

First we import Elrepo's key

RHEL-7, SL-7 or CentOS-7:  
rpm–import https://www.elrepo.org/ rpm-gpg-key-elrepo.org

RHEL-6, SL-6 or CentOS-6  
rpm-uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm

* RHEL-5, SL-5 or centos-5*  
rpm-uvh http://www.elrepo.org/ elrepo-release-5-5.el5.elrepo.noarch.rpm

  1. In the Elrepo source of yum,ml (mainline) is the kernel of the latest version of kernel lt Long-supported. The CentOS 7 default kernel version is the newest and this version of the kernel in the 3.10,yum source.

    Installing the ML kernel
    Yum–enablerepo=elrepo-kernel Install KERNEL-ML

    Installing the LT kernel
    Yum–enablerepo=elrepo-kernel Install Kernel-lt

  2. modifying kernel boot order

     vi /etc/grub.conf # 里面是启动内核的序列,排在第一个的就是最新安装的内核。default是默认启动的内核,如果要选第一个,可以设置default=0即可。
  3. Rebooting the system

      reboot
  4. View Kernel version

    -r

CentOS Online Upgrade Kernel

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.