centos7 修改yum源为阿里源

来源:互联网 发布:网络社交的利与弊论点 编辑:程序博客网 时间:2024/06/03 16:00

cd /etc/yum.repos.d
备份旧的配置文件:mv CentOS-Base.repo CentOS-Base.repo.bak
下载阿里源的文件: wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
清理缓存
yum clean all
重新生成缓存
yum makecache

参考文章:http://www.2cto.com/os/201702/595519.html

原创粉丝点击