CentOS Liunx 7 更换为阿里云的源
1 备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2 下载新的CentOS-Base.repo 到/etc/yum.repos.d/
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3 生成缓存
yum makecache
结果查询如下图:
CentOS Liunx 7 更换为阿里云的源
https://yangxj96.github.io/2022/12/linux/b005/