标签:软件 code python packages wget cache yun https node
# 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
标签:软件 code python packages wget cache yun https node
原文地址:https://www.cnblogs.com/abnk/p/12860450.html