1YUM-CONFIG-MANAGER(1)          dnf-plugins-core          YUM-CONFIG-MANAGER(1)
2
3
4

NAME

6       yum-config-manager - redirecting to DNF config-manager Plugin
7
8       Manage  main  and  repository  DNF  configuration options, toggle which
9       repositories are enabled or disabled, and add new repositories.
10

SYNOPSIS

12       dnf config-manager [options] <section>...
13

ARGUMENTS

15       <section>
16              This argument can be used to explicitly select the configuration
17              sections  to  manage.  A section can either be main or a repoid.
18              If not specified, the program will select the main  section  and
19              each  repoid  used within any --setopt options.  A repoid can be
20              specified using globs.
21

OPTIONS

23       All general DNF options are accepted, see Options  in  dnf(8)  for  de‐
24       tails.
25
26       --help-cmd
27              Show this help.
28
29       --add-repo=URL
30              Add  (and enable) the repo from the specified file or url. If it
31              has to be added into installroot, combine it  with  --setopt=re‐
32              posdir=/<installroot>/etc/yum.repos.d command-line option.
33
34       --dump Print dump of current configuration values to stdout.
35
36       --set-disabled, --disable
37              Disable the specified repos (implies --save).
38
39       --set-enabled, --enable
40              Enable the specified repos (implies --save).
41
42       --save Save the current options (useful with --setopt).
43
44       --setopt=<option>=<value>
45              Set  a  configuration  option.  To set configuration options for
46              repositories, use repoid.option for the <option>. Globs are sup‐
47              ported in repoid.
48
49       WARNING:
50          DNF  config-manager  can misbehave when enabling/disabling reposito‐
51          ries generated by tools like subscription-manager on RHEL.  In  this
52          case you should use subscription-manager to perform such actions.
53

EXAMPLES

55       dnf config-manager --add-repo http://example.com/some/additional.repo
56              Download additional.repo and store it in repodir.
57
58       dnf config-manager --add-repo http://example.com/different/repo
59              Create  new  repo file with http://example.com/different/repo as
60              baseurl and enable it.
61
62       dnf config-manager --dump
63              Display main DNF configuration.
64
65       dnf config-manager --dump <section>
66              Display configuration of a repository identified by <section>.
67
68       dnf config-manager --set-enabled <repoid>
69              Enable repository identified by <repoid>  and  make  the  change
70              permanent.
71
72       dnf config-manager --set-disabled <repoid1> <repoid2>
73              Disable repositories identified by <repoid1> and <repoid2>
74
75       dnf config-manager --set-disabled <repoid1>,<repoid2>
76              Disable repositories identified by <repoid1> and <repoid2>
77
78       dnf     config-manager    --save    --setopt=*.proxy=http://proxy.exam
79       ple.com:3128/ <repo1> <repo2>
80              Update proxy setting in repositories  with  repoid  <repo1>  and
81              <repo2> and make the change permanent.
82
83       dnf config-manager --save --setopt=*-debuginfo.gpgcheck=0
84              Update  gpgcheck  setting in all repositories whose id ends with
85              -debuginfo and make the change permanent.
86

AUTHOR

88       See AUTHORS in your Core DNF Plugins distribution
89
91       2023, Red Hat, Licensed under GPLv2+
92
93
94
95
964.4.3                            Oct 06, 2023            YUM-CONFIG-MANAGER(1)
Impressum