87447007 2020-05-09
# download from : https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/ wget https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/yum-3.4.3-167.el7.centos.noarch.rpm wget https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm wget https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-53.el7.noarch.rpm wget https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/yum-utils-1.1.31-53.el7.noarch.rpm wget https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/python-urlgrabber-3.10-10.el7.noarch.rpm rpm -ivh *.rpm --force --nodeps # 从网站上拷配置 : https://mirrors-i.tuna.tsinghua.edu.cn/help/centos/ # wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo sed -i ‘s#$releasever#7#g‘ /etc/yum.repos.d/CentOS-Base.repo sed -i ‘s#gpgcheck=1#gpgcheck=0#g‘ /etc/yum.repos.d/CentOS-Base.repo yum clean all && yum makecache && yum update && yum makecache