[Yum] Priority for repositories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2005-02-07 at 09:08 -0500, Chris Geddings wrote:
> Hey,
> What you are looking for the is the pkgpolicy directive.
> 
> [From man page for yum.conf]:
> 
>        pkgpolicy=[newest|last]
>               Default: newest.  Package sorting order.   When  a 
> package  is
>               available  from  multiple servers, newest will install the
> most
>               recent version of the package found. last will sort the
> servers
>               alphabetically by serverid and install the version of the
> pack-
>               age found on the last server in the  resulting  list.  
> If  you
>               don?t  understand the above then you?re best left not
> including
>               this option at all and letting the default occur.
>                                                                                 
> Just to clarify, what it sorts alphabetically on is the name of the repo
> that you put into []'s for the conf.  So, you will want to be careful to
> "name" the repo's in a way that will sort properly.
> 
> For example:
> [0repo]
> name=Not the most important
> baseurl=http://foo/path/to/foo
> 
> [1repo]
> name=The most important
> baseurl=http://bar/path/to/bar
> 

And to be more clear - for yum 2.1.X and above this option has been
removed.

You're best off using excludes and includepkgs options in repo sections
to achieve the same result.

-sv



[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux