CentOS7更换yum源
技术资讯
2024-08-05 09:51
1294
阿里源(推荐):
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
网易源:
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
清理yum缓存
yum clean all
生成新的缓存
yum makecache
标签:
- CentOS7将yum源更换为国内
- CentOS7更换yum源
- CentOS7改仓库源