Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On any given box that has subscriptions to multiple repos

yum list available --showduplicates foo

gives me:

foo.x86_64    0.0.1-1    dev-repo
foo.x86_64    0.0.1-1    test-repo

What is the logic that yum uses to determine which package to download? I know in the end, that, if the packages are the same, it shouldn't matter, but I'm still interested.

share|improve this question
up vote 1 down vote accepted

In cases where everything is truly identical, as in your example, Yum resolves such conflicts alphabetically.

share|improve this answer
That's interesting, but does your link talks about packages with different names but that provide the same content. If packages have the same name, does it resolve alphabetically based on repo? – donovan.lampa Oct 4 '12 at 19:21
If Yum's behavior is consistent with what is described in my link, it should resolve conflicts alphabetically based on anything it can. In your example, the only thing it can differentiate based on is the repo name. Of course, that's a big 'if'; I'm not 100% sure. – Zac B Oct 5 '12 at 15:49
I'll take this as it seems to be correct. – donovan.lampa Nov 13 '12 at 22:21

Your Answer


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.