You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a scenario where myConfig.repo contains a repository configuration, and I want to override some parameters using a separate file, myConfig-override.repo, which has the same repository ID but includes modified parameters. However, when I try this, I encounter the error: "Repository is listed more than once in the configuration".
Is there an option or plugin available in DNF v4 that allows for overriding or merging repository configurations as described?
I noticed that this feature is available in DNF v5, but I cannot use it since not all operating systems I work with support DNF v5 yet.
Thank you for your help!
The text was updated successfully, but these errors were encountered:
Hi, I don't think DNF 4 has or will implement something like DNF 5's drop-in repo directories, sorry. From quickly looking around, I don't see a plugin that implements this either, although it may be possible.
However, if you are in a position where you are able to make changes to myConfig.repo, you could allow users to override settings using DNF 4's relatively new variable expansion feature. See https://dnf.readthedocs.io/en/latest/conf_ref.html#repo-variables. For example, you could have:
enabled will be 1 by default unless ENABLE_MY_CONFIG is set. So if a user wanted to override the default, they could echo 0 > /etc/dnf/vars/ENABLE_MY_CONFIG. Could that help your use case?
Hi,
We are using the latest version of DNF v4.
I have a scenario where myConfig.repo contains a repository configuration, and I want to override some parameters using a separate file, myConfig-override.repo, which has the same repository ID but includes modified parameters. However, when I try this, I encounter the error: "Repository is listed more than once in the configuration".
Is there an option or plugin available in DNF v4 that allows for overriding or merging repository configurations as described?
I noticed that this feature is available in DNF v5, but I cannot use it since not all operating systems I work with support DNF v5 yet.
Thank you for your help!
The text was updated successfully, but these errors were encountered: