Solve the problem of Yum installation dependency

Recently, I have seen a lot of requests for help on the Internet about the error reporting of the installation of the network Yum source. I have encountered such problems before, and there is no effective solution to find Duo Niang. Finally, after several attempts, it was finally solved, and now I will share the solution with everyone!

Solve the problem of Yum installation dependency Solve the problem of Yum installation dependency

Yum source and installation

The installation process has been talked about by Daniel before! I won't elaborate here. For details, please refer to:

Redhat 7 uses the Yum network source of CentOS 7

problem statement

Follow the above method to install, there should be no problem. But Ben Xiaobai made a mistake during installation!

[root@ linux probe~]# rpm -ivh yum-fastestmirror-1.1.26-11.el6. centos .noarch.rpm 

error: Failed dependencies: 
yum >= 3.0 is needed by yum-fastestmirror-1.1.26-11.el6.centos.noarch 

[root@linuxprobe~]# rpm -ivh yum-3.2.27-14. el6.centos.noarch.rpm 

error: Failed dependencies: 
yum-fastestmirror is needed by yum-3.2.27-14.el6.centos.noarch

After repeated operations, there is still no result... There is really no way to decide not to deal with it temporarily.

problem solved

Solve the problem of Yum installation dependency Solve the problem of Yum installation dependency
Solve the problem of Yum installation dependency Solve the problem of Yum installation dependency

Later, I accidentally saw rpm on the Internet and added two files to execute, so I decided to try it myself:

[root@localhost rpm]# rpm -ivh yum-3.2.27-14.el6.centos.noarch.rpm yum-fastestmirror-1.1.26-11.el6.centos.noarch.rpm

Then see the results:

Preparing...                ########################################### [100%]
   1:yum-fastestmirror      ########################################### [ 50%]
   2:yum                    ########################################### [100%]

So far, the problem of being needed during the Yum installation process has been solved!
The above is the result of Xiaobai's own experiments and attempts. If there is any inaccuracy, please correct me!

Guess you like

Origin blog.csdn.net/yaxuan88521/article/details/131991552