2024-10-08 20:33:55 +05:30
|
|
|
# dnf config-manager
|
|
|
|
|
|
|
|
> Manage DNF configuration options and repositories on Fedora-based systems.
|
|
|
|
> More information: <https://manned.org/dnf-config-manager>.
|
|
|
|
|
|
|
|
- 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-06-29 11:32:13 +03:00
|
|
|
`dnf config-manager {{[--enable|--set-enabled]}} {{repository_id}}`
|
2024-10-08 20:33:55 +05:30
|
|
|
|
|
|
|
- Disable specified repositories:
|
|
|
|
|
2025-06-29 11:32:13 +03:00
|
|
|
`dnf config-manager {{[--disable|--set-disabled]}} {{repository_id1 repository_id2 ...}}`
|
2024-10-08 20:33:55 +05:30
|
|
|
|
|
|
|
- Set a configuration option for a repository:
|
|
|
|
|
|
|
|
`dnf config-manager --setopt={{option}}={{value}}`
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
`dnf config-manager --help-cmd`
|