[CentOS] Selectively updating protected repos

Johnny Hughes mailing-lists at hughesjr.com
Sat Jul 1 16:06:26 UTC 2006


On Sat, 2006-07-01 at 09:42 -0400, Phil Schaffner wrote:
> On Fri, 2006-06-30 at 19:59 -0400, 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
> 
> But - this will effectively exclude all other centosplus packages.
> May/may-not be what was wanted.  I've also played with protectbase and
> found it difficult to find the right combination of protect=0/1 and
> include/exclude to get the desired behavior to allow some packages from
> add-on repos.  Eventually ended up with protect=1 for all the repos I
> wanted to use which kind of defeats the purpose.
> 
> Phil

When you use protectbase ... you are saying this:

For all repos where protect=1, use normal update rules ... but, for all
repos where protect=0 do not update any packages in a protect=1 repo.

SO ....

If you every want centosplus to replace anything in base then they would
both have to be in either protect=1  (or both repos would need to be in
protect=0).

In that case, you would still need to use exclude and includepkgs to
manage which other packages from centosplus would be updated.

The purpose of the protectbase plugin is to protect a repo (like
base) ... from a repo (like atpms).

It isn't defeating the purpose ... That is how it is designed :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.centos.org/pipermail/centos/attachments/20060701/8b267f4f/attachment.sig>


More information about the CentOS mailing list