The docs says:
dnf config-manager [options] <section>...
…
<section>
This argument can be used to explicitly select the configuration sections to manage. A section can either bemain
or a repoid. If not specified, the program will select themain
section and each repoid used within any--setopt
options. A repoid can be specified using globs.
…
--setopt=<option>=<value>
Set a configuration option. To set configuration options for repositories, userepoid.option
for the<option>
. Globs are supported in repoid.
…
dnf config-manager --save --setopt=*.proxy=http://proxy.example.com:3128/ <repo1> <repo2>
Update proxy setting in repositories with repoid and and make the change permanent.
And this brings to my mind the following questions:
What is the difference between dnf config-manager --save --setopt=test.proxy=example.com
and dnf config-manager --save --setop=proxy=example.com test
?
If " If not specified, the program will select the main
section and each repoid used within any --setopt
options. A repoid can be specified using globs." is true, does dnf config-manager --save --setopt=*.proxy=http://proxy.example.com:3128/ <repo1> <repo2>
will change repo1, repo2 and main confs?