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.
On Sun, Dec 7, 2008 at 3:47 AM, Vandaman vandaman2002-sk@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
Akemi Yagi wrote:
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.
It is this exclude=foo that I'm interested in. If you have the setup you have described, then one would not need exclude as the yum priority should take care of versions shouldn't it?
If you have say webmin from webmin.com and there is webmin in all those repos then it might be good to use exclude but shouldn't the plugin handle versions between repos?
Regards, Vandaman.
On Sun, Dec 7, 2008 at 11:05 AM, Vandaman vandaman2002-sk@yahoo.co.uk wrote:
Akemi Yagi wrote:
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.
It is this exclude=foo that I'm interested in. If you have the setup you have described, then one would not need exclude as the yum priority should take care of versions shouldn't it?
If you have say webmin from webmin.com and there is webmin in all those repos then it might be good to use exclude but shouldn't the plugin handle versions between repos?
You can find some useful examples here:
http://wiki.centos.org/AdditionalResources/Repositories/CentOSPlus
It's case by case. You need to find a good combined use of the priorities plugin and exclude=, includepkgs=, etc.
Akemi
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