YUM-CONFIG-MANAGER(1)

🌸 NAME 🌸

okay bestie, meet yum-config-manager β€” it's redirecting to the DNF config-manager Plugin, no cap πŸ’…. It's the whole vibe for managing main and repository DNF configuration options, toggling which repositories are enabled or disabled, and adding new repositories. iconic. ✨


✨ SYNOPSIS ✨

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

that's the whole mood: options, then one or more <section> things. periodt. πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • <section> β€” use this when you wanna explicitly pick the configuration sections to manage. A section can either be main or a repoid. 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. iykyk 🌈

πŸ’– OPTIONS πŸ’–

All general DNF options are accepted, see Options in dnf(8) for details. like, the whole DNF menu is open to you, bestie 🫢

  • --help-cmd β€” Show this help. the classic β€œhelp me help you” moment 😭
  • --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 --setopt=reposdir=/<installroot>/etc/yum.repos.d command-line option. πŸŽ€
  • --dump β€” Print dump of current configuration values to stdout. very β€œshow me everything” energy ✨
  • --set-disabled, --disable β€” Disable the specified repos (implies --save).
  • --set-enabled, --enable β€” Enable the specified repos (implies --save). slay. πŸ’…
  • --save β€” Save the current options (useful with --setopt).
  • --setopt=<option>=<value> β€” Set a configuration option. To set configuration options for repositories, 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. like bestie, pls be careful here 😭

πŸŽ€ EXAMPLES πŸŽ€

  • dnf config-manager --add-repo http://example.com/some/additional.repo β€” Download additional.repo and store it in repodir.
  • dnf config-manager --add-repo http://example.com/different/repo β€” Create new repo file with http://example.com/different/repo as baseurl and enable it.
  • dnf config-manager --dump β€” Display main DNF configuration.
  • dnf config-manager --dump <section> β€” Display configuration of a repository identified by <section>.
  • dnf config-manager --set-enabled <repoid> β€” Enable repository identified by <repoid> and make the change permanent.
  • dnf config-manager --set-disabled <repoid1> <repoid2> β€” Disable repositories identified by <repoid1> and <repoid2>.
  • dnf config-manager --set-disabled <repoid1>,<repoid2> β€” Disable repositories identified by <repoid1> and <repoid2>.
  • proxy glow-up, but make it permanent:
dnf config-manager --save
--setopt=*.proxy=http://proxy.example.com:3128/ <repo1> <repo2>

Update proxy setting in repositories with repoid <repo1> and <repo2> and make the change permanent. πŸ”₯

  • dnf config-manager --save --setopt=*-debuginfo.gpgcheck=0 β€” Update gpgcheck setting in all repositories whose id ends with -debuginfo and make the change permanent.

πŸ‘‘ AUTHOR πŸ‘‘

See AUTHORS in your Core DNF Plugins distribution. yes, the whole squad is credited there 🫢


2014, Red Hat, Licensed under GPLv2+. πŸ’–


okay that's the whole lore, bestie β€” this page is serving dnf-plugins-core 4.10.1 energy, dated Mar 28, 2025. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from