标签:安装 ges yum源 class style dep rpm -e wget grep
如果不小心在机器上卸载了yum工具,或者yum工具被破坏了,需要重新装yum工具
1、卸载yum源
rpm -qa|grep yum|xargs rpm -e --nodeps
2、下载相关关于yum源的包
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-3.4.3-167.el7.centos.noarch.rpm wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-53.el7.noarch.rpm
注:这里的yum包如果下载不了了,可以在此站点http://mirrors.163.com/centos/7/os/x86_64/Packages/ 找到对应的包下载
3、安装包
rpm -ivh python-iniparse-0.4-9.el7.noarch.rpm # 先安装python-iniparse rpm --nodeps --force -ivh yum-* # 在安装相关的yum包,这里忽略关联包 使用--nodeps --force
4、重新清理yum
yum clean all yum makecache
标签:安装 ges yum源 class style dep rpm -e wget grep
原文地址:https://www.cnblogs.com/lemon-le/p/13303077.html