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

前端之家收集整理的这篇文章主要介绍了linux – yum更新内核而不删除旧的?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
当我更新它想要删除我拥有的最老的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.

猜你在找的Linux相关文章