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

The solution to the problem that CenOS7 cannot directly upgrade the kernel

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article mainly introduces "the solution to solve the problem that CenOS7 can not upgrade the kernel directly". In daily operation, I believe many people have doubts in solving the problem that CenOS7 can not directly upgrade the kernel. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to solve the problem that CenOS7 can not upgrade kernel directly. Next, please follow the editor to study!

The solution to the problem that CenOS7 cannot directly upgrade the kernel

[root@xx] # yum-- enablerepo=elrepo-kernel install kernel-lt-y

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* elrepo: lon.mirror.rackspace.com

* elrepo-kernel: lon.mirror.rackspace.com

No package kernel-lt available.

Error: Nothing to do

CentOS7 updates the latest kernel

Kernel download address: https://elrepo.org/linux/kernel/el7/x86_64/RPMS/

Kernel selection

Kernel-lt (lt=long-term) is effective for a long time.

Kernel-ml (ml=mainline) mainstream version

Installation process 1. Download kernel wget https://elrepo.org/linux/kernel/el7/x86_64/RPMS/kernel-ml-5.2.4-1.el7.elrepo.x86_64.rpm2. Install the kernel rpm-ivh kernel-ml-5.2.4-1.el7.elrepo.x86_64.rpm3. View the current default kernel # grub2-editenv listsaved_entry=CentOS Linux (3.10.0-327.28.3.el7.x86_64) 7 (Core) 4. View all kernel startup grub2# awk-F\'$1 boot = "menuentry" > 5. Modified to the latest kernel startup grub2-set-default 'CentOS Linux (5.2.4-1.el7.elrepo.x86_64) 7 (Core)' 6. Check the kernel # grub2-editenv listsaved_entry=CentOS Linux (5.2.4-1.el7.elrepo.x86_64) 7 (Core) 7 again. Restart reboot update kernel-ml-headerswget http://ftp.osuosl.org/pub/elrepo/kernel/el7/x86_64/RPMS/kernel-ml-headers-5.2.4-1.el7.elrepo.x86_64.rpmrpm-ivh kernel-ml-headers-5.2.4-1.el7.elrepo.x86_64.rpm update kernel-ml-devel http://ftp.osuosl.org/pub/elrepo/kernel/el7/x86_64/RPMS/kernel-ml-devel- 5.2.4-1.el7.elrepo.x86_64.rpmrpm-ivh kernel-ml-devel-5.2.4-1.el7.elrepo.x86_64.rpm so far The study on "solving the problem that CenOS7 cannot upgrade the kernel directly" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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

Internet Technology

Wechat

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

12
Report