方法一、修改yum的配置文件
vim /etc/yum.conf 在[main]的最后添加

exclude=kernel* 

exclude=centos-release*

方法二、直接在yum的命令后面加上如下的参数
yum --exclude=kernel* update

查看系统版本 cat /etc/issue
查看内核版本 uname -a

 

 

 

相关文章:

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