LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

yum-config-manager

Manage yum repository configuration

TLDR

View the current configuration
$ yum-config-manager
copy
Add a repository from a URL or file
$ yum-config-manager --add-repo [url_or_path]
copy
Enable one or more repositories
$ yum-config-manager --enable [repo_id]
copy
Disable one or more repositories
$ yum-config-manager --disable [repo_id]
copy
Set a configuration option and save it
$ yum-config-manager --setopt=[repo_id.option=value] --save
copy

SYNOPSIS

yum-config-manager [options] [section...]

DESCRIPTION

yum-config-manager is a utility for managing the main yum configuration and its repositories. It can display current settings, toggle which repositories are enabled, add new repositories from URLs or .repo files, and adjust individual options without manually editing `/etc/yum.conf` or files under `/etc/yum.repos.d/`.On modern Red Hat-based distributions (RHEL 8+, Fedora, CentOS Stream), yum has been replaced by dnf, and this command is typically provided as an alias or wrapper for `dnf config-manager`.

PARAMETERS

-h, --help

Display help information.
--save
Save the current options (useful with --setopt).
--enable
Enable the specified repositories (automatically saves).
--disable
Disable the specified repositories (automatically saves).
--add-repo=URL|FILE
Add (and enable) a repository from the given .repo file or URL.
--setopt=option=value
Set any config option in yum config or repo files. Use repoid.option=value for repo-specific options; repoid may contain wildcards.

CAVEATS

Must be run as root to modify configuration. On DNF-based systems, yum-config-manager is an alias for dnf config-manager and requires the `dnf-plugins-core` package.

HISTORY

yum-config-manager is part of the yum-utils package (later dnf-utils) from the RPM software management project. It was widely used on RHEL, CentOS, and Fedora to manage repositories before the transition to DNF.

SEE ALSO

dnf(8), yum(8), rpm(8), createrepo(8)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid