On Sun, 2006-07-02 at 14:12 +0200, Dag Wieers wrote: > On Fri, 30 Jun 2006, Robert Spangler wrote: > > > On Thu June 29 2006 16:20, Bart Schaefer wrote: > > > > > I've been trying out the protectbase plugin for yum, and haven't yet > > > determined the best way to selectively update a package. E.g. I'd > > > like to mark the base repo as protected, but get the latest firefox > > > from the centosplus repo. > > > > > > What's the correct incantation for this? > > > > Goto your /etc/yum.repos.d and edit CentOS-Base.repo and do the following; > > > > under [base] add > > exclude=firefox > > > > Under [centosplus] add > > includepkgs=firefox > > In fact the protectbase plugin should understand that if you force a > package out of base, that this is the desired behaviour and pull new > packages from the repository it came from. > > This behaviour would allow people to override protectbase and make it > permanent. Yum in that case needs to display what it is doing so there's > no chance of misinterpreting the behaviour. > > Kind regards, > -- dag wieers, dag@xxxxxxxxxx, http://dag.wieers.com/ -- > [all I want is a warm bed and a kind word and unlimited power] I agree that would be desirable behavior ... now, how to program that, no idea :) If there is someone out there who is smart enough to make that happen, please do :) Protect base (as written) is just for protecting a group of repos (in the protect=1 category) from another group of repos (in the protect=0 category). Per repo excludes and/or includepkgs can be used to make things work though ... That may be hard to do ... but that is how yum works. There is another plugin we are testing (called yum-plugin-priorites), and there seems to be some issue with the "obsoletes" option now. This one allows you to assign a priority to repos from 1-100 ... even with this one though, you would have to exclude packages from higher priority repos to get them be drawn from other repos.
Attachment:
signature.asc
Description: This is a digitally signed message part
_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos