[Yum] yum repo precedence and autoselection

Skahan, Vince vince.skahan at boeing.com
Tue Aug 7 20:42:24 UTC 2007


If I have multiple repositories with different rpms that provide the
same item (ie, Provides: foo), how does yum calculate which rpm is the
one it should autoselect if you have another rpm that "Requires: foo" ?

Example:
 - if you had repo A with rpm aaa-0.1-1.noarch.rpm
 - and repo B containing bbb-0.1-1.noarch.rpm
 - and repo C containing ccc-0.1-1.noarch.rpm
 - and all three rpms had the same Provides: foo defined
 - which rpm gets autoselected if your package list Requires: foo ?

I'm assuming there's some unwritten law of rpms saying "no two rpms
should claim to provide the same thing", but regardless how does yum
figure out what to autoselect under the hood when it parses the various
enabled repositories ?

------ vince.skahan at boeing.com ------



More information about the Yum mailing list