Bart Schaefer | 1 Jul 2006 17:44
Picon

Re: Selectively updating protected repos

On 6/30/06, Robert Spangler <lazydog@...> wrote:
>
> under [base] add
> exclude=firefox

I was afraid this was the answer.  The trouble here is that, come 4.4,
the firefox package in the base is going to be newer than the one in
centosplus.  I don't want to exclude firefox from the base, I want the
most recent one from either of the base or plus repos, without having
to get everything else from the plus repo.

This exclude is what I've used for now, but I think it's sub-optimal.

> Under [centosplus] add
> includepkgs=firefox

This doesn't appear to be necessary in combination with the exclude
and protect=1 on base.  Hmm, what would happen if I left out the
exclude for base but used the include for plus?
Bart Schaefer | 1 Jul 2006 18:14
Picon

Re: Selectively updating protected repos

On 7/1/06, Bart Schaefer <barton.schaefer@...> wrote:
> Hmm, what would happen if I left out the
> exclude for base but used the include for plus?

I tried this with the kernel* packages and it doesn't do what I hoped,
unless I also turn off protect on base, which sort of defeats the
purpose.  Oh, well.

Related question:  How does one get a list of the contents of a repo
so as to maintain a correct includepkgs line, while still having the
includepkgs line present?  E.g. suppose some new package is added to
centosplus that I might want to use to update a base package.  If I
have an includepkgs line for centosplus, "yum check-update" will never
show me that a new package is there, because it will ignore everything
except what's already in the includepkgs line.
Johnny Hughes | 1 Jul 2006 18:36

Re: Selectively updating protected repos

On Sat, 2006-07-01 at 09:14 -0700, Bart Schaefer wrote:
> On 7/1/06, Bart Schaefer <barton.schaefer@...> wrote:
> > Hmm, what would happen if I left out the
> > exclude for base but used the include for plus?
> 
> I tried this with the kernel* packages and it doesn't do what I hoped,
> unless I also turn off protect on base, which sort of defeats the
> purpose.  Oh, well.
> 
> Related question:  How does one get a list of the contents of a repo
> so as to maintain a correct includepkgs line, while still having the
> includepkgs line present?  E.g. suppose some new package is added to
> centosplus that I might want to use to update a base package.  If I
> have an includepkgs line for centosplus, "yum check-update" will never
> show me that a new package is there, because it will ignore everything
> except what's already in the includepkgs line.

How I do it is with a separate config file (not named .repo) that you
can pass in via the command line ...

yum -c /path/to/yum.check.conf

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

Gmane