2025-03-14 21:59:59 -06:00
|
|
|
# dnf config-manager
|
|
|
|
|
|
|
|
|
|
> Manage DNF configuration options and repositories on Fedora-based systems.
|
2025-07-24 22:27:13 -06:00
|
|
|
> More information: <https://dnf-plugins-core.readthedocs.io/en/latest/config_manager.html>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Add (and enable) a repository from a URL:
|
|
|
|
|
|
|
|
|
|
`dnf config-manager --add-repo={{repository_url}}`
|
|
|
|
|
|
|
|
|
|
- Print current configuration values:
|
|
|
|
|
|
|
|
|
|
`dnf config-manager --dump`
|
|
|
|
|
|
|
|
|
|
- Enable a specific repository:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`dnf config-manager {{[--enable|--set-enabled]}} {{repository_id}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Disable specified repositories:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`dnf config-manager {{[--disable|--set-disabled]}} {{repository_id1 repository_id2 ...}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Set a configuration option for a repository:
|
|
|
|
|
|
|
|
|
|
`dnf config-manager --setopt={{option}}={{value}}`
|
|
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
|
|
`dnf config-manager --help-cmd`
|