< 返回

centos6 yum源不可用问题解决

2020-12-01 03:53 作者:小鹿-it6666 阅读量:1910

2020年11月30日 centos6各大开源镜像站已经停止维护了 但是阿里源还是可以用的 因为他的centos-vault仓库里放了之前版本的centos的包

 

只需要在centos命令行界面下执行一下几条命令

 

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

curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo

yum clean all

yum makecache

一行是一条命令

 

一键切换为 oracle linux 6,支持到2024年

 

wget https://raw.githubusercontent.com/oracle/centos2ol/main/centos2ol.sh -O - | bash

联系我们
返回顶部