yum repos question

Phil Savoie psavoie1783 at rogers.com
Wed Nov 16 12:30:31 UTC 2011


Hello everyone,

This question is such a simple, obvious question, but I can't find the
answer anywhere.

When you have several yum repos files in /etc/yum.repos.d and you decide
to use yum to install some software, if that software can be found in
several of the repos, which repo gets priority?

There are three answers I have seen:

1) use a plugin--- yum-pugin-priorities       However, several sites
have warned against the idea of put a priority level on the different
repositories.
2) use the "--disable repo" to disable any repos when installing (this
assumes you know which repos have the duplicate software!)
3)   from the man page:  (but this only applies to when you have more
than one baseurl in a stanza, NOT two completely different repositories
that both have that software)
"failovermethod Either 'roundrobin' or 'priority'.  under each repo
stanze 'roundrobin' randomly selects a URL out of the list of URLs to
start with and proceeds through each of them as it encounters a failure
contacting the host.
'priority' starts from the first baseurl listed and reads through them
sequentially.
failovermethod defaults to 'roundrobin' if not specified."


Any help is appreciated!

Thank you.

Phil




More information about the redhat-list mailing list