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

cp /etc/yum.conf    /etc/yum.confbak

方法一、修改yum的配置文件

vi /etc/yum.conf  在[main]的最后添加

exclude=kernel*

exclude=centos-release*

方法二、直接在yum的命令后面加上如下的参数:

yum --exclude=kernel* update

查看系统版本  cat /etc/issue

查看内核版本  uname -a

相关文章:

  • 2021-09-12
  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2021-12-16
  • 2021-11-17
  • 2022-02-14
  • 2022-01-07
猜你喜欢
  • 2022-12-23
  • 2021-06-26
  • 2022-03-08
  • 2022-02-10
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案