dnf.plugin.config_manager man page

dnf.plugin.config_manager — DNF config-manager Plugin

Manage main DNF configuration options, toggle which repositories are enabled or disabled, and add new repositories.

Synopsis

dnf config-manager [options] <repo>...

Arguments

<repo>
Display / modify specified repository. If not specified display / modify main DNF configuration. Repositories can be specified using globs.

Options

--help-cmd
Show this help.
--add-repo=URL
Add (and enable) the repo from the specified file or url. If it has to be added into installroot, combine it with --setopt=reposdir=/<installroot>/etc/yum.repos.d command-line option.
--dump
Print dump of current configuration values to stdout.
--set-disabled
Disable the specified repos (automatically saves).
--set-enabled
Enable the specified repos (automatically saves).
--save
Save the current options (useful with --setopt).

Examples

dnf config-manager --add-repo http://example.com/some/additional.repo
Download additional.repo and store it in repodir.
dnf config-manager --add-repo http://example.com/different/repo
Create new repo file with http://example.com/different/repo as baseurl and enable it.
dnf config-manager --dump
Display main DNF configuration.
dnf config-manager repo --dump
Display configuration of repo.
dnf config-manager --set-enabled repo
Enable repo and make the change permanent.
dnf config-manager --setopt proxy=http://proxy.example.com:3128/ repo1 repo2 --save
Update proxy setting in repo1 and repo2 and make the change permanent.

Author

See AUTHORS in your Core DNF Plugins distribution

Info

Sep 29, 2016 1.0.0 dnf-plugins-core