Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

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.