How should I use Yum Priorities with the IUS repo?

Asked by RMartin

I am have been using a number of 3rd party repositories with CentOS 5.4, and have configured Yum to use the IUS repo by installing ius-release-1-4.ius.el5.noarch.rpm. Since the default ius.repo installed does not set a priority for the repository, I am thinking that I should probably set it to priority=1, the same as my CentOS-Base.repo, since I will be un-installing original rpm's to replace them with the newer IUS versions.

3rd party repos are set to priority of "10", including epel.repo - given the dependencies between IUS packages and epel, should I change this, as well?. Overall, Priorities has been working well for me. The few dependency conflicts I have encountered thus far were resolved by manually ( via YUM Extender ) un-installing conflicting packages and adding a couple of exclude= lines in the .repo files...

I have also (now) installed yum3-3.2.22-20.0.1.ius.el5.noarch.rpm, as advised in the "Getting Started" article.

Please forgive me if the answer to my question is obvious, as I have been working in MS environ for years Now I am able to migrate to a Linux environment, but will need time to come up to speed...

Any advice or suggestions will be greatly appreciated!!!

The repos I am currently using are:

adobe-linux-i386.repo
CentOS-Base.repo
CentOS-Media.repo
epel.repo
graphviz.repo
ius.repo
mharris-el.repo
rpmforge.repo
virtualbox.repo

Question information

Language:
English Edit question
Status:
Solved
For:
IUS Community Project Edit question
Assignee:
No assignee Edit question
Solved by:
BJ Dierkes
Solved:
Last query:
Last reply:
Revision history for this message
Best BJ Dierkes (derks) said :
#1

Hello,

I've not used priorities much being that most of my usage is on RHEL rather than CentOS... and RHEL doesn't package yum with priorities support. That said, IUS packages are a bit different with the alternative package names (php -> php53, etc) which is not exactly common with most other repos. If any of the other repos provide similar packages then IUS should have a higher priority, but with the yum3 package I don't know that it would even matter. Keeping the priority at 1 seems to be the best plan IMO unless/until you run into some kind of conflict. That said, nothing should install from IUS unless you explicitly request it... or if that packages base package is installed (i.e. php52-mysql when php52 is installed).

Revision history for this message
RMartin (rex-martin) said :
#2

Thank you!!!

Your answer helps greatly in understanding the IUS repo strategy. I will leave the ius priority at "1", for now, and epel at "10", as it has been.

-- Rex Martin