Files
sa-charts/docker-swarm/10.5x环境配置记录/0.使用阿里云的源.md
2025-05-08 21:24:40 +08:00

424 B
Raw Blame History

更换yum源为阿里云的yum源因为后续Centos7可能也会停止官方的yum源支持所以需要手动更换

备份官方yum源配置文件

cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak

下载阿里云yum源配置文件

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

4、清除缓存生产新的缓存

yum clean all

yum makecache