-bash: /usr/bin/yum: No such file or directory yum源重新安装完美解决方案

本意是升级yum源,结果升级到最后一步,一直yum makecache失败,手贱把yum给删除了。结果没得玩了

不小心删除了 yum,提示-bash: /usr/bin/yum: No such file or directory
解决办法如下:

依次复制粘贴运行即可
rpm -ivh --nodeps http://mirrors.163.com/centos/7.5.1804/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
rpm -ivh --nodeps http://mirrors.163.com/centos/7.5.1804/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-45.el7.noarch.rpm
rpm -ivh --nodeps http://mirrors.163.com/centos/7.5.1804/os/x86_64/Packages/yum-3.4.3-158.el7.centos.noarch.rpm

OK,至此已完成。

想升级yum 源,点这里最简单

你可能感兴趣的:(-bash: /usr/bin/yum: No such file or directory yum源重新安装完美解决方案)