首页 > 系统相关 >Centos6如何更新yum源

Centos6如何更新yum源

时间:2023-02-02 09:55:32浏览次数:40  
标签:pluginconf etc 更新 repo 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已经可以正常使用了

标签:pluginconf,etc,更新,repo,Centos6,yum
From: https://www.cnblogs.com/Fengdengshuai/p/17084977.html

相关文章