Re: Tips to add optional arguments on dnf using plugin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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.
 


--
Stephen J Smoogen.

_______________________________________________
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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux