yum functions
Peter Gordon
peter at thecodergeek.com
Sun Oct 22 18:29:31 UTC 2006
Mike Chambers wrote:
> When using some of these, such as --enablerepo= and --exclude=, is there
> a way to use just one option with multiple choices such as below...
>
> --enablerepo=one,two,three --exclude=package1,package1
>
> instead of one option per choice as is currently?
>
The way I do it is by using Bash's brace expansion:
$ yum --enablerepo={repofoo,repobar,testing} --exclude={pkg1,libzoink} ...
Bash expands that to
$ yum --enablerepo=repofoo --enablerepo=repobar \
--enablerepo=testing --exclude=pkg1 --exclude=libzoink
Hope that helps.
--
Peter Gordon (codergeek42)
GnuPG Public Key ID: 0xFFC19479 / Fingerprint:
DD68 A414 56BD 6368 D957 9666 4268 CB7A FFC1 9479
My Blog: http://thecodergeek.com/blog/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/test/attachments/20061022/03a97ccb/attachment.bin
More information about the test
mailing list