-bash: /usr/bin/yum: No such file or directory 完美解决方案

大意删除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

转载于:https://www.cnblogs.com/magicking/p/9113224.html

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