Le 2019-07-23 14:09, Stephen John Smoogen a écrit :
On Tue, 23 Jul 2019 at 08:00, Nicolas Mailhot via devel
<devel@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
Le 2019-07-23 12:01, Fellipe Henrique a écrit :
Hi
First, Thanks very much for you reply...
I need to add a "global" argument so I can change the layer of a
repository... For example:
$ dnf repolist --set-layer=mylayer
$ dnf install -y any_repo --set-layer=mylayer
On our setup we approximate this via <layer>-repo naming
So dnf commands become dnf --disablerepo * --enablerepo <layer>-*
Just for your future use.. I think you can cut that down to "dnf
--repo <layer>-*" and it will do the disable* for you.
--repo=<repoid>, --repoid=<repoid>
Enable just specific repositories by an id or a
glob. Can be
used multiple times with accumulative effect. It is
basically a
shortcut for --disablerepo="*" --enablerepo=<repoid>
and is
mutually exclusive with the --disablerepo option.
Thanks for the tip, I had missed this dnf enhancement!
Small fixes like that matter, they improve the user experience a lot
Regards,
--
Nicolas Mailhot
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx