Re: Tips to add optional arguments on dnf using plugin

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

 



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>-*

Tried to play with passing yum/dnf explicit config paths, that didn’t work out so well. (I’ve seen others try to switch personalities via YUMx variables, the result is also quite user unfriendly).

Of course that’s some pretty big hammer and that disables the ability to preset repos to on or off within a layer. It would be much nicer if there was a way to define things as part of a configuration set in /etc/yum*, and enable/disable specific configuration sets on the cli.

One use case is reposync, since one typically wants the system to use the remote repos once synced, so every repo has one personality for reposync, and another for the system dnf itself.

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




[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