为 YUM 源配置优先级

来源:互联网 发布:hadoop超市数据分析 编辑:程序博客网 时间:2024/06/05 02:08

Ceph 的安装包在 epel 中也有,但是比较旧,已经把 Ceph 的源加入 /etc/yum.repos.d, 但是 yum 安装的时候,会选择 epel 里的 Ceph 软件包,而有是选择 Ceph 源里的。

解决方法:使用 YUM 的 yum-plugin-priorities 插件。

$ yum install yum-plugin-priorities

确认配置文件内容

cat /etc/yum/pluginconf.d/priorities.conf

[main]

enabled = 1

在 /etc/yum.repos.d/ceph.repo 中的每个节点加入

priority=1

priority 越小表示优先级越高


0 0
原创粉丝点击