Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to install postfix with MySQL on RHEL5 but the repos from the rhnplugin are overriding it even if i have an exclude line in the rhnplugin.conf file

My goal is to only use the CentOSPlus repo for postfix and the rest use RHN

This is my rhnplugin.conf file

[main]
enabled = 1
gpgcheck = 1

[base]
exclude=postfix

[update]
exclude=postfix

and this is my CentOS-Base.repo file

[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

It works fine if I set enabled=0 in my rhnplugin.conf file but my goal is not to disable that repo

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Add this to your rhnplugin.conf:

[rhel-x86_64-server-5]
exclude=postfix

Assuming "rhel-x86_64-server-5". Adjust that repo according to your RHEL version.
(yum repolist enabled will show the enabled repos on your system)

Then install postfix:

yum install postfix
share|improve this answer
    
and you don't need the "base" and "update" sections in your rhnplugin.conf - those are for CentOS. –  Chad Feller Aug 28 '11 at 3:49
    
awesome thanks! –  Andre Jay Marcelo-Tanner Aug 28 '11 at 19:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.