How can Linux prevent the automatic upgrade of the system kernel Kernel to avoid unnecessary troubles

Kernel is the system kernel, and the kernel will also be updated when the Linux system is upgraded. Sometimes, in order to avoid unnecessary trouble, many users will choose not to upgrade the Linux kernel, so how to prevent the kernel upgrade?

The method is as follows:

Method 1:

# vim /etc/yum.conf

exclude=kernel*

Under the [main] configuration section, add or modify the above contents.

You can check whether it is effective through the following command:

# yum update | grep -i kernel

Method 2:

Add the - x parameter to the yum command line to skip the specified update. For example:

# yum -x ‘kernel*’ update

That's all for the way Linux prohibits the upgrade of the system kernel kernel. Method 2 is implemented by adding parameters to the yum command line, which is much simpler than method 1.

 

However, when updating other software packages, if you rely on the latest kernel, the software package cannot be updated successfully.

course

Installing GUI Desktop for Linux VPS Server Ubuntu System (XWindows Gnome)

2018-5-26 8:19:49

course

Build LNMP environment on raspberry pie

2018-5-26 8:35:29

0 replies A Author M administrators
    There is no discussion yet. Tell me your opinion
search