配置Centos7 yum源
时间:2018-05-18 11:19:56
收藏:0
阅读:202
配置阿里Centos7 yum源
1)到网址下载repo文件
wget http://mirrors.aliyun.com/repo/Centos-7.repo
1)到网址下载repo文件
wget http://mirrors.aliyun.com/repo/Centos-7.repo
2)备份原有Yum源文件,替换新的repo文件
cp Centos-7.repo /etc/yum.repos.d/
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.bak
mv Centos-7.repo CentOS-Base.repo
3)执行yum源更新命令
yum clean all #清除yum缓存
yum makecache #重新生成缓存
yum update #更新yum源,时间会很久
原文:http://blog.51cto.com/59465168/2117800
评论(0)