[Yum] yum repo precedence and autoselection

seth vidal skvidal at fedoraproject.org
Wed Aug 8 05:48:59 UTC 2007


On Tue, 2007-08-07 at 13:42 -0700, Skahan, Vince wrote:
> 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 ?
> 

aaa will win b/c of shortest/first sorted name. b/c everything else is
completely equal.

> 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 ?

if you want to sort your repos via internal precedence you could look at
yum priorities plugin - but it won't help where 3 pkgs of different name
provide the same thing, I don't think.

-sv







More information about the Yum mailing list