替换yum源,确保已经安装了yum ,rpm -qa |grep yum
该文件包含了:python-iniparse-0.4-9.el7.noarch.rpm、python-urlgrabber-3.10-8.el7.noarch.rpm、yum-3.4.3-158.el7.centos.noarch.rpm、yum-metadata-parser-1.1.4-10.el7.x86_64.rpm、yum-plugin-fastestmirror-1.1.31-45.el7.noarch.rpm
导入key
rpm --import https://mirrors.tuna.tsinghua.edu.cn/centos-vault/RPM-GPG-KEY-CentOS-5
清理yum缓存
yum clean all && yum makecache
1