[CentOS] Selectively updating protected repos

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


On Sat, 2006-07-01 at 09:14 -0700, Bart Schaefer wrote:
> On 7/1/06, Bart Schaefer <barton.schaefer at gmail.com> 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


-------------- 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/b2502863/attachment.sig>


More information about the CentOS mailing list