[Yum-devel] Priorities plugin added to yum-utils
Tim Lauridsen
tim at rasmil.dk
Fri Oct 27 13:27:37 UTC 2006
Mark McLoughlin wrote:
> Hi,
> A default priority of 99 seems strange to me. Wouldn't 50 make more
> sense, allowing people to configure repos either higher or lower than
> the repos without any priority?
>
99 was the default selected by the author, it dont means a lot what the
default is.
you can just set the priority to 100 for a repo, if you want it to be
higher than the default.
> i.e. all the stock fedora repos won't have a priority configured[1],
> and people will only use this plugin when they add another repo, and
> they may wish to have that repo higher than the fedora ones ... so,
> wouldn't it be better if they only had to specify a priority for the
> added repo in order to achieve that?
>
>
You have to specify priorities lower than the default on the base repos
to protect them
or add priorities higher than the default to the addon repos.
You can do it both ways.
> Cheers,
> Mark.
>
> [1] - yum would barf on any set priority if the plugin wasn't enabled,
> right?
>
no,
[tim at localhost ~]$ grep "enabled=1" /etc/yum.repos.d/*.repo
/etc/yum.repos.d/fedora-core.repo:enabled=1
/etc/yum.repos.d/fedora-extras.repo:enabled=1
/etc/yum.repos.d/fedora-updates.repo:enabled=1
/etc/yum.repos.d/livna.repo:enabled=1
[tim at localhost ~]$ grep "priority=" /etc/yum.repos.d/*.repo
/etc/yum.repos.d/fedora-core.repo:priority=1
/etc/yum.repos.d/fedora-extras.repo:priority=2
/etc/yum.repos.d/fedora-updates.repo:priority=2
[tim at localhost ~]$ yum --noplugins list updates
Setting up repositories
Reading repository metadata in from local files
Updated Packages
bluez-utils.i386 3.7-2
updates
rpmdevtools.noarch 5.3-1.fc6
extras
shadow-utils.i386 2:4.0.17-7.fc6
updates
tar.i386 2:1.15.1-21.fc6
updates
vnc.i386 4.1.2-5.fc6
updates
vnc-server.i386 4.1.2-5.fc6
updates
xsane.i386 0.991-4.fc6
updates
xsane-gimp.i386 0.991-4.fc6
updates
[tim at localhost ~]$
Regards,
Tim
More information about the Yum-devel
mailing list