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