• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

yum-config-manager: command not found

by admin

YUM (short for Yellowdog Updater Modified) is an open source tool that was developed by Red Hat Inc for RPM-based systems. It is a high-level package management tool that’s used for easily installing, removing, updating, or searching software packages on systems or in network repositories. It allows us to use a CentOS base and third-party repositories that are created on remote or local servers to install individual packages or groups of packages automatically, after resolving their dependencies.

The main configuration file of YUM is /etc/yum.conf, and the main directory, which stores the repository configuration file, is /etc/yum.repos.d/. The repository configuration file has got a specific syntax, and it should end with a .repo extension in the /etc/yum.repos.d/ directory.

The repository configuration file contains the URL of the repository, the repo id, repo name, instructions to use GPG for checking package signatures, and an option to enable or disable the repository.

If you encounter below error:

# yum-config-manager --add-repo [repository_url]
-bash: yum-config-manager: command not found 

you may try installing the below package as per your choice of distribution.

Distribution Command
Debian apt-get install yum-utils
Ubuntu apt-get install yum-utils
Kali Linux apt-get install yum-utils
CentOS yum install yum-utils
Fedora dnf install yum-utils
Raspbian apt-get install yum-utils

yum-config-manager command is a part of the package named yum-utils. Due to missing package on the system, it’s attained an error while running the command.

We can permanently enable or disable a repository by using the yum-config-manager utility. It makes necessary changes in the file stored in the /etc/yum.repos.d/ directory, as shown in command line here:

$ yum-config-manager  --enable [repo id]

The yum-config-manager utility can also be used to create a client repo configuration file inside /etc/yum.repos.d, as shown in the following command line:

$ yum-config-manager --addrepo=http://repo.example.com/7/x86_64/

Filed Under: Linux

Some more articles you might also be interested in …

  1. atom: A cross-platform pluggable text editor (Command Examples)
  2. How to use “yum downloadonly” to download a package without installing it
  3. How to transfer files securely using sftp (examples included)
  4. lxi Command Examples in Linux
  5. How to Limit/throttle rsync transfer speed in Linux
  6. Linux interview questions – Special permissions (SUID, SGID and sticky bit)
  7. 6 Bash Shell Command Line Chaining Operators in Linux
  8. tcpdump: command not found
  9. How to extract RPM package without installing it
  10. autopep8: Format Python code according to the PEP 8 style guide (Command Examples)

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright