Vandaman
2008-Dec-07 11:47 UTC
[CentOS] Suggested yum priorities settings for 3rd party repos
In the yum priorities page on the wiki Akemi Yagi suggests http://wiki.centos.org/PackageManagement/Yum/Priorities [base], [addons], [updates], [extras] ... priority=1 [centosplus],[contrib] ... priority=2 Third Party Repos ... priority=N (where N is > 10 and based on your preference) If you have rpmforge, kbs, epel all set up at 10 then wouldn't those also potentially overwrite each other if the same package exists in all of them? Who has got several 3rd party repos and what are your yum priority for those? Regards, Vandaman.
Akemi Yagi
2008-Dec-07 14:13 UTC
[CentOS] Suggested yum priorities settings for 3rd party repos
On Sun, Dec 7, 2008 at 3:47 AM, Vandaman <vandaman2002-sk at yahoo.co.uk> wrote:> In the yum priorities page on the wiki Akemi Yagi suggests > http://wiki.centos.org/PackageManagement/Yum/Priorities > > [base], [addons], [updates], [extras] ... priority=1 > > [centosplus],[contrib] ... priority=2 > > Third Party Repos ... priority=N (where N is > 10 and > based on your preference)I did not write/suggest that particular part (but that does not really matter).> If you have rpmforge, kbs, epel all set up at 10 then wouldn't > those also potentially overwrite each other if the same package > exists in all of them? > > Who has got several 3rd party repos and what are your yum priority > for those?One of my systems have these entries: rpmforge.repo:priority=40 kbsingh-CentOS-Extras.repo:priority=50 kbsingh-CentOS-Misc.repo:priority=50 atrpms.repo:priority=85 epel.repo:priority=90 CentOS-Testing.repo:priority=99 .... (not a complete list) I do use different sets of numbers depending on what a given system runs. In addition to the priority scores, use of exclude= etc is also important if you aim at getting certain packages from a repository of your choice. Akemi
Kai Schaetzl
2008-Dec-07 14:31 UTC
[CentOS] Suggested yum priorities settings for 3rd party repos
Vandaman wrote on Sun, 7 Dec 2008 11:47:28 +0000 (GMT):> Third Party Repos ... priority=N (where N is > 10 and > based on your preference) > > If you have rpmforge, kbs, epel all set up at 10 then wouldn't > those also potentially overwrite each other if the same package > exists in all of them?This is not what he suggests. You choose from "above 10" according to your *preference*. e.g. rpmforge = 11, epel = 12 etc. That's also what I do, by accident. But I have the base repo's at 0 and not 1. And usually you want to have some gap between the figures, so you can easily rearrange (use 10, 15, 20 instead of 10,11,12). I think it's quite clear, but following your question I suggest a small edit: Third Party Repos ... priority=N (where N is > 10 and based on your preference for that repo) Kai -- Kai Sch?tzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com