加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – yum更新内核而不删除旧的?

发布时间:2020-12-14 02:50:25 所属栏目:Linux 来源:网络整理
导读:当我更新它想要删除我拥有的最老的3内核并升级到新的. 是不是可以让yum不删除旧内核? 解决方法 在/etc/yum.conf中设置installonly_limit = 3.引自 documentation: installonly_limit Number of packages listed in installonlypkgs to keep installed at t
当我更新它想要删除我拥有的最老的3内核并升级到新的.

是不是可以让yum不删除旧内核?

解决方法

在/etc/yum.conf中设置installonly_limit = 3.引自 documentation:

installonly_limit Number of packages listed in installonlypkgs to keep installed at the same time. Setting to 0 disables this feature. Default is ’0’. Note that this functionality used to be in the “installonly” plugin,where this option was altered via. tokeep. Note that as of version 3.2.24,yum will now look in the yumdb for a installonly attribute on installed packages. If that attribute is “keep”,then they will never be removed.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读