Re: [CentOS] Selectively updating protected repos

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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 :)

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux