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

NAME

6       dnf-config-manager - 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

EXAMPLES

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

AUTHOR

83       See AUTHORS in your Core DNF Plugins distribution
84
86       2022, Red Hat, Licensed under GPLv2+
87
88
89
90
914.2.1                            May 27, 2022            DNF-CONFIG-MANAGER(8)
Impressum