CentOS使用yum update更新时不升级内核的方法

1、CentOS使用yum update更新时不升级内核

cp /etc/yum.conf    /etc/yum.conf.bak

2、修改yum的配置文件

vi /etc/yum.conf

在[main]的最后添加

exclude=kernel*
exclude=centos-release*

说明:不要采用低版本中常用的如下方式:yum –exclude=kernel* update ,这个命令在Fedora中基本可以用,但是对于 centos-release 的包无法处理。

实用教程

CentOS7 源码安装Zabbix6 LTS版本

2023-7-19 2:00:17

实用教程

AD域控免密码安装软件

2023-7-19 14:24:16

搜索