[SOLVED]: yum config manager command not found

The "yum config manager command not found" error can be a frustrating experience for Linux users who rely on the yum package manager to manage their system's software. This error occurs when the "yum-config-manager" command, which is included in the yum-utils package, is not installed on the system. Fortunately, there are several steps that can be taken to fix this issue and ensure that your system is up and running smoothly.

Solution for yum config manager command not found

Below content shows step by step process to fix the error yum config manager command not found

Step 1: Install the yum-utils package

The first step to fixing the "yum config manager command not found" error is to ensure that the yum-utils package is installed on your system. To install this package, open a terminal and enter the following command:

 yum install yum-utils

Step 2: Verify the installation

After installing the yum-utils package, verify that the "yum-config-manager" command is now available on your system. You can do this by entering the following command in the terminal:

yum-config-manager

Step 3: Use yum-config-manager to manage repositories

Now that the "yum-config-manager" command is installed on your system, you can use it to manage your system's software repositories. This command allows you to enable or disable repositories, add new ones, and modify repository settings.

For example, to enable the "epel" repository, which provides additional packages not included in the default CentOS repositories, enter the following command

yum-config-manager --enable epel

If you need to disable a repository, use the "disable" option:

yum-config-manager --disable epel

If you need to add a new repository, use the "add" option:

yum-config-manager --add-repo <repository-url>

Remember to use the "sudo" command if you are logged in as a regular user to ensure that you have the necessary permissions to run the "yum-config-manager" command with elevated privileges.

Conclusion

In summary, the "yum config manager command not found" error can be resolved by installing the yum-utils package on your system. This package includes the "yum-config-manager" command, which allows you to manage your system's software repositories. By enabling or disabling repositories, adding new ones, and modifying repository settings using this command, you can keep your system up-to-date and secure. Remember to always use the "sudo" command if you are logged in as a regular user to ensure that you have the necessary permissions to manage your system's repositories. With these steps in mind, you can quickly and easily fix the "yum config manager command not found" error and get back to managing your system's software with confidence.

Search on LinuxDataHub

Leave a Comment