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

Introduction to the method of not upgrading the Linux kernel when using yum update

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

The main content of this article is to explain "the introduction of the method of not upgrading the Linux kernel when using yum updates", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to update the Linux kernel without upgrading the Linux kernel when using yum updates.

When RedHat/CentOS/Fedora is updated with yum update, the kernel is upgraded by default. However, some server hardware (especially assembled machines) after upgrading the kernel, the new kernel may not recognize some of the hardware, it is troublesome to reinstall the driver. So don't upgrade the kernel easily in a production environment unless you're sure there won't be any problems after upgrading the kernel.

If you do not want to upgrade the kernel but only update other packages, there are two ways:

1. Modify the configuration file vim / etc/yum.conf of yum, and add exclude=kernel* at the end of [main]

2. Add the following parameters directly after the yum command:

The code is as follows:

Yum-exclude=kernel* update

Aliyun CentOS uses the yum update command not to upgrade the kernel and operating system

The code is as follows:

Vi / etc/yum.conf

# add: at the end of [main]:

Exclude=kernel*

# and

Exclude=centos-release*

# press the Esc key, enter: wq, and then enter enter

# it's done!

Finally, it is concluded that:

Just add the following configuration after [main] in / etc/yum.conf!

The code is as follows:

Exclude=kernel*

Exclude=centos-release*

At this point, I believe you have a deeper understanding of the "introduction to the method of not upgrading the Linux kernel when using yum updates". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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