V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
VKMEPR
V2EX  ›  Linux

centos yum 如何设置只排除自带基础源里的内核更新?

  •  
  •   VKMEPR · 2019-05-16 21:37:05 +08:00 · 2541 次点击
    这是一个创建于 1811 天前的主题,其中的信息可能已经有所发展或是发生改变。

    添加 ELRepo 安装了新版内核,发现运行 yum update 同时会更新 centos 基础源里内核版本,能不能排除基础源内核更新?

    在 /etc/yum.conf 配置文件添加 exclude=kernel*或修改 installonly_limit 参数限制并存软件版本,这两个方法都只能一刀切设置,有更好办法吗?

    saytesnake
        1
    saytesnake  
       2019-05-17 16:36:22 +08:00
    yum update kernel --enablerepo=elrepo
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2309 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 12:01 · PVG 20:01 · LAX 05:01 · JFK 08:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.