我试图在RHEL5上安装MySQL的postfix,但是rhnplugin的repos覆盖了它,即使我在rhnplugin.conf文件中有一个排除行
我的目标是只使用CentOSPlus repo for postfix,其余的使用RHN
这是我的rhnplugin.conf文件
[main] enabled = 1 gpgcheck = 1 [base] exclude=postfix [update] exclude=postfix
这是我的CentOS-Base.repo文件
[centosplus] enabled=1 includepkgs=postfix name=CentOS-5 - Plus mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=centosplus gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
它工作正常,如果我在我的rhnplugin.conf文件中设置enabled=0 ,但我的目标不是禁用该回购
把这个添加到你的rhnplugin.conf中:
[rhel-x86_64-server-5] exclude=postfix
假设“rhel-x86_64-server-5”。 根据您的RHEL版本调整回购。
( yum repolist enabled将显示您的系统上启用回购)
然后安装postfix:
yum install postfix