Do you get an error “yum-config-manager command not found” while upgrading PHP? Well, I got this error while upgrading PHP from version 5.3 to 7 on CentOS vps and here’s how I solved the issue.
Here’s the snapshot of the error while setting up REMI repository which contains PHP7 packages.
[root@centos6 ~]# yum-config-manager --enable remi-php70 bash: yum-config-manager: command not found
How to fix yum-config-manager command not found error
Looking at the error, it is clear that yum-config-manager command is not found on the system. So to fix this error, we need to install a package that contains yum-config-manager utility. The package yum-utils contains tools and programs for managing, manipulating repositories, installing debug packages, source packages and extended package management. This is the package that contains yum-config-manager which can be used to setup yum repositories.
Install yum-utils as shown below:
yum install yum-utils
That’s it. Now the package yum-utils will install the command yum-config-manager which will allow you to setup/enable repository.