-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
posted @ 2018-05-30 20:44  Magicking  阅读(3380)  评论(0编辑  收藏  举报