DNF4-CONFIG-MANAGER(8)

πŸŽ€ DNF4-CONFIG-MANAGER πŸ’…

okay bestie, welcome to the dnf4-config-manager page, part of dnf-plugins-core β€” yes that manual, the fancy collection of plugins ✨. This little icon is the DNF config-manager Plugin, and she does three things: manage main + repository DNF configuration options, toggle repos enabled/disabled, and add brand new repos. no cap. πŸ‘‘


🌸 NAME 🌸

dnf4-config-manager β€” the DNF config-manager Plugin, aka the girl who runs the config.

She manages main and repository DNF configuration options, toggles which repositories are enabled or disabled, and adds new repositories. periodt. πŸ’…


✨ SYNOPSIS ✨

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

πŸ¦‹ ARGUMENTS πŸ¦‹

  • <section> β€” this one lets you explicitly pick which configuration sections you wanna manage, like a little VIP list πŸŽ€. A section is either main or a repoid. If you don't specify anything, the program goes and selects the main section plus every repoid used inside any --setopt options. And yes, a repoid can be specified using globs. slay.

πŸ’– OPTIONS πŸ’–

All general DNF options are accepted β€” go peek at Options in dnf(8) for the deets, iykyk.

  • --help-cmd β€” shows this help. that's it, that's the whole thing. 🫢
  • --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 the --setopt=reposdir=/<installroot>/etc/yum.repos.d command-line option. combine, don't fight it bestie πŸ’œ
  • --dump β€” print a dump of the current configuration values to stdout. show me everything πŸ‘€
  • --set-disabled, --disable β€” disable the specified repos (and yeah, this implies --save).
  • --set-enabled, --enable β€” enable the specified repos (also implies --save). main character energy fr fr πŸ”₯
  • --save β€” save the current options (super useful with --setopt). make it permanent, queen πŸ‘‘
  • --setopt=<option>=<value> β€” set a configuration option. Wanna set config options for repositories? Then use repoid.option for the <option>. Globs are supported in repoid 🌈.
⚠️ Warning: DNF config-manager can misbehave when enabling/disabling repositories generated by tools like subscription-manager on RHEL 😭. In this case you should use subscription-manager to perform such actions. not a suggestion, bestie, it's giving please listen to me πŸ’€

πŸ“ EXAMPLES πŸ“

the girlies love a demo, so here we go:

  • dnf config-manager --add-repo http://example.com/some/additional.repo β€” download additional.repo and store it in repodir. easy πŸ’…
  • dnf config-manager --add-repo http://example.com/different/repo β€” create a new repo file with <http://example.com/different/repo> as baseurl and enable it. obsessed ✨
  • dnf config-manager --dump β€” display the main DNF configuration. the whole vibe check πŸ¦‹
  • dnf config-manager --dump <section> β€” display the configuration of a repository identified by <section>. just one, like a spotlight πŸŽ€
  • dnf config-manager --set-enabled <repoid> β€” enable the repository identified by <repoid> and make the change permanent. she's back and she's staying πŸ’–
  • dnf config-manager --set-disabled <repoid1> <repoid2> β€” disable the repositories identified by <repoid1> and <repoid2> πŸ™ˆ
  • dnf config-manager --set-disabled <repoid1>,<repoid2> β€” disable the repositories identified by <repoid1> and <repoid2> (comma edition, same energy ✨)
  • ``` dnf config-manager --save --setopt=*.proxy=http://proxy.example.com:3128/ <repo1> <repo2>
update the proxy setting in the repositories with repoid `<repo1>` and `<repo2>` and make the change permanent. proxies but make it permanent πŸ’…

- `dnf config-manager --save --setopt=*-debuginfo.gpgcheck=0` β€” update the `gpgcheck` setting in all repositories whose id ends with `-debuginfo` and make the change permanent. glob goes brrr πŸ”₯

---

# 🌟 Author 🌟

See `AUTHORS` in your Core DNF Plugins distribution. credit where credit is due, bestie 🫢

---

# ⭐ Copyright ⭐

`2014, Red Hat, Licensed under GPLv2+`

---

okay that's the whole page πŸ’œ thank you for coming to my ted talk, this was <pink>DNF4-CONFIG-MANAGER(8)</pink> from the <cyan>dnf-plugins-core</cyan> manual, version <purple>4.10.1</purple>, dated <lavender>Sep 27, 2025</lavender>. go forth and configure responsibly, mwah πŸŽ€βœ¨πŸ’…
πŸ“¦ where this page comes from