Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Upgrade the linux kernel version

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. Install the public key

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

2. Download the kernel

Sudo rpm-Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

3. Check the kernel version

Sudo yum-y-disablerepo= "*"-enablerepo= "elrepo-kernel" list available

4. Install the latest version

Sudo yum-y-- enablerepo=elrepo-kernel install kernel-ml or yum-- enablerepo=elrepo-kernel install kernel-lt

5. Check all available kernels on the machine

Sudo awk-F\'$1 etc/grub2.cfg = "menuentry" {print iTunes + ":" $2}'/ etc/grub2.cfg

6. Edit the configuration file

Sudo vi / etc/default/grubGRUB_TIMEOUT=5GRUB_DEFAULT=0GRUB_DISABLE_SUBMENU=trueGRUB_TERMINAL_OUTPUT= "console" GRUB_CMDLINE_LINUX= "rd.lvm.lv=centos/root rd.lvm.lv=centos/swap crashkernel=auto rhgb quiet" GRUB_DISABLE_RECOVERY= "true"

7. Write to the startup configuration file of grub2

Sudo grub2-mkconfig-o / boot/grub2/grub.cfg

8. Restart

Sudo reboot

9. View all the kernels in the system:

Rpm-qa | grep kernelyum remove package name sudo cat

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report