解决CentOS6 yum源失效
系统2年前 (2021-03-11)
CentOS6操作系统版本结束了生命周期(EOL),Linux社区已不再维护该操作系统版本。建议升级至CentOS7及以上,如果处于业务过渡期仍需要使用CentOS6系统中的一些安装包,需要切换CentOS6的源
sed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos6_base.repo wget -O /etc/yum.repos.d/epel.repo http://mirrors.cloud.tencent.com/repo/epel-6.repo sed -i 's#http#https#g' /etc/yum.repos.d/CentOS-Base.repo yum clean all && yum makecache
或者
sed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf wget -O /etc/yum.repos.d/CentOS-Base.repo https://www.vos.cn/nexus/repo/Centos-6-Vault-Official.repo wget -O /etc/yum.repos.d/epel.repo https://www.vos.cn/nexus/repo/epel-6.repo yum clean all && yum makecache
本站所有文章均可随意转载,转载时请保留原文链接及作者。