Centos6如何更新yum源

Centos6的yum源已经不维护了,所以需要更换yum源

解决方法:

1、

# vi /etc/yum/pluginconf.d/fastestmirror.conf
#修改参数
enable=0
....

2、

#替换为阿里云镜像
# wget -O /etc/yum.repos.d/CentOS-Base.repo https://static.lty.fun/%E5%85%B6%E4%BB%96%E8%B5%84%E6%BA%90/SourcesList/Centos-6-Vault-Aliyun.repo

此时yum已经可以正常使用了

posted @ 2023-02-02 09:48  陌风陌风  阅读(777)  评论(0)    收藏  举报