DNF4-CONFIG-MANAGER(8)
πΈ DNF4-CONFIG-MANAGER(8) πΈ
okay so this whole page lives in the dnf-plugins-core manual, bestie, and it's about dnf4-config-manager β the DNF config-manager Plugin. Say it with me: config manager. It's the plug-in that lets you manage main and repository DNF configuration options, toggle which repositories are enabled or disabled, and add new repositories. That's the whole vibe. Slay. π
β¨ NAME β¨
dnf4-config-manager β the DNF config-manager Plugin, fr fr.
It handles main and repository DNF configuration options, flips repositories between enabled and disabled, and adds brand-new repos. Three jobs, one icon. π
π¦ SYNOPSIS π¦
dnf config-manager [options] <section>...
π ARGUMENTS π
<section>β use this to explicitly pick which configuration sections you wanna manage. A section is eithermainor a repoid (a repo's id, obviously). Now here's the little plot twist: if you don't specify any sections, the program goes ahead and selects themainsection plus each repoid used inside any--setoptoptions. And yes, a repoid can be specified using globs. Globs!! We love a wildcard moment. β
π OPTIONS π
All general DNF options are accepted, so if you want the full tea just see Options in dnf(8).
--help-cmdβ shows this help. That's it, that's the whole job. π«Ά--add-repo=URLβ adds (and enables) the repo from the specified file or url. Now listen, this next bit matters: if it has to be added into installroot, combine it with the--setopt=reposdir=/<installroot>/etc/yum.repos.dcommand-line option. Combine them. Together. As a team. π€--dumpβ prints a dump of the current configuration values to stdout. Just dumps the whole config right out there. Zero shame. π--set-disabled,--disableβ disables the specified repos (which implies--save). Bye bye repos, enjoy your nap. π--set-enabled,--enableβ enables the specified repos (which also implies--save). Welcome back, bestie, we missed you. π₯--saveβ saves the current options, super useful together with--setopt. Make it permanent, make it official, make it main character energy. β¨--setopt=<option>=<value>β sets a configuration option. To set configuration options for repositories, userepoid.optionfor the<option>. And globs are supported in the repoid β yes, more globs, we stay winning. π
WARNING: π¨ DNF config-manager can misbehave when enabling/disabling repositories generated by tools likesubscription-manageron RHEL. In that case you should usesubscription-managerto perform such actions. No cap β don't fight the tool, just use the tool. π
π EXAMPLES π
okay here's where it gets good, the receipts:
dnf config-manager --add-repo http://example.com/some/additional.repo Downloads additional.repo and stores it in repodir. Download it, store it, done. π
dnf config-manager --add-repo http://example.com/different/repo Creates a new repo file with http://example.com/different/repo as the baseurl, and enables it. Fresh repo, freshly enabled. π
dnf config-manager --dump Displays the main DNF configuration. The whole main config, right there in your terminal. π
dnf config-manager --dump <section> Displays the configuration of a repository identified by <section>. One repo's config, hand-delivered. π
dnf config-manager --set-enabled <repoid> Enables the repository identified by <repoid> and makes the change permanent. Permanent means permanent, bestie. π«Ά
dnf config-manager --set-disabled <repoid1> <repoid2> Disables the repositories identified by <repoid1> and <repoid2>. Plural. Multiple. A whole situation. π
dnf config-manager --set-disabled <repoid1>,<repoid2> Disables the repositories identified by <repoid1> and <repoid2> β same thing, but with a comma this time. Both forms are valid, pick your fighter. π
dnf config-manager --save
--setopt=*.proxy=http://proxy.example.com:3128/ <repo1> <repo2>
Updates the proxy setting in repositories with repoid <repo1> and <repo2> and makes the change permanent. Proxy? Set. Permanent? Also set. π§
dnf config-manager --save --setopt=*-debuginfo.gpgcheck=0 Updates the gpgcheck setting in all repositories whose id ends with -debuginfo and makes the change permanent. That glob is doing so much work and it's eating, honestly. π₯
π AUTHOR π
See AUTHORS in your Core DNF Plugins distribution. That's where the credit lives. Go say hi to them. π
πΈ COPYRIGHT πΈ
2026, Red Hat, Licensed under GPLv2+. Respect the license, love the license. β
and that's the page, bestie!! π¦ it's version 4.7.0, dated Aug 10, 2026, and it's the dnf-plugins-core manual's very own DNF4-CONFIG-MANAGER(8). go forth and configure, you absolute icon, mwah ππ
π¦ where this page comes from
- centos-stream 10: dnf-plugins-core 4.7.0-12.el10 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms