[CentOS] more than one repo with --disablerepo

Johnny Hughes mailing-lists at hughesjr.com
Thu Apr 13 16:53:34 UTC 2006

On Thu, 2006-04-13 at 11:04 -0400, Bowie Bailey wrote:
> Rodrigo Barbosa wrote:
> > 
> > Another interesting trick I use all the time:
> > 
> > yum --disablerepo=* --enablerepo=dag install XXXX
> > 
> > That way, all repos will be disabled, and only the one explicitily
> > listed will be used.
> What I would love to find a way to do is this:
> yum --disablerepo=* --enablerepo=csgfs update
> ...and still allow yum to use the base and update repos to satisfy
> dependencies.
> What I did instead was this:
> yum --disablerepo=* --enablerepo=csgfs check-update

yum --disablerepo=* --enablerepo=csgfs --enablerepo=base --enablerepo=updates update

> I then grabbed the list, extracted the package names and fed them back
> to "yum update".
> The idea was that I wanted to update the csgfs packages and the
> required kernel (and other) packages, but I wanted to hold off on the
> rest of the 4.3 updates.
-------------- 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/20060413/2a685165/attachment.sig>

More information about the CentOS mailing list