centos的阿里云yum源设置

使用国内的阿里云镜像

(1)把/etc/yum.repos.d/下面所有的源给删除掉了

(2)下载镜像

1 # CentOS 5
2 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
3 # CentOS 6
4 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
5 # CentOS 7
6 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

猜你喜欢

转载自www.cnblogs.com/huang99882008/p/9282163.html
今日推荐