您的位置:首页 > 运维架构 > Linux

CentOS添加163镜像

2016-05-22 19:38 639 查看
原文链接:http://blog.csdn.net/xyang81/article/details/51476498

1、下载CentOS相应发行版的镜像

查看发行版本:

shell> cat /etc/centos-release


CentOS7

CentOS6

CentOS5

如下载CentOS7的镜像:

shell> cd /opt
shell> wget http://mirrors.163.com/.help/CentOS7-Base-163.repo[/code] 

2、备份默认源,并拷贝163源到源管理目录

shell> mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
shell> cp /opt/CentOS7-Base-163.repo /etc/yum.repos.d/


3、生成缓存

yum clean all
yum makecache
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  centos yum源 镜像