Centos7.8切換阿里雲(aliyun)yum源
更換阿里雲(aliyun)yum源
最進在使用移動公司的網絡,真心想吐槽,太多網站無法訪問!建議更新DX網絡,LT也可以。
1.阿里雲倉庫文件
wget -O /etc/yum.repos.d/CentOS-Base.repo \
http://mirrors.aliyun.com/repo/Centos-7.repo
2.epel 額外倉庫
wget -O /etc/yum.repos.d/epel.repo \
http://mirrors.aliyun.com/repo/epel-7.repo
3.清空原本yum緩存
yum clean all
4.重新生成緩存
yum makecache