Although the override mechanism is well described in Drop-in repo directories section of dnf.conf(5) man page, it can be difficult for users to identify which config files contributed to the final repository state.
A user could run dnf config-manager disable foo, then examine the /etc/yum.repos.d/foo.repo file, see enabled=1, and be confused about why the repository is disabled. dnf repo info foo would show Status: disabled but the Config file: line would point to the original /etc/yum.repos.d/foo.repo file where enabled=1 remains unchanged.
There is no built-in "show me all config sources for this repo" diagnostic. Users must manually check /etc/dnf/repos.override.d/ (and possibly other locations) to find the override.
One option to resolve this issue would be to track every file that contributed to the repository configuration and display them in the dnf repo info output.
Although the override mechanism is well described in
Drop-in repo directoriessection of dnf.conf(5) man page, it can be difficult for users to identify which config files contributed to the final repository state.A user could run
dnf config-manager disable foo, then examine the/etc/yum.repos.d/foo.repofile, see enabled=1, and be confused about why the repository is disabled.dnf repo info foowould showStatus: disabledbut theConfig file:line would point to the original/etc/yum.repos.d/foo.repofile whereenabled=1remains unchanged.There is no built-in "show me all config sources for this repo" diagnostic. Users must manually check
/etc/dnf/repos.override.d/(and possibly other locations) to find the override.One option to resolve this issue would be to track every file that contributed to the repository configuration and display them in the
dnf repo infooutput.