Re: yum repo precedence and autoselection

seth vidal <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <1186552139.28247.66.camel@cutter>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.