首页 > 其他 > 详细

【CentOS 7.1】使用163的镜像

时间:2015-06-25 01:37:39      阅读:2020      评论:0      收藏:0      [点我收藏+]

CentOS 7.1.1503


安装镜像 http://mirrors.163.com/centos/7.1.1503/os/x86_64/

帮助文档 http://mirrors.163.com/.help/centos.html


// backup

[root@localhost yum.repos.d]# cd /etc/yum.repos.d/

[root@localhost yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repo.bak 

mv: overwrite ‘CentOS-Base.repo.bak‘? y

[root@localhost yum.repos.d]# 


// wget

[root@localhost yum.repos.d]# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo

--2015-06-24 18:40:24--  http://mirrors.163.com/.help/CentOS7-Base-163.repo

Resolving mirrors.163.com (mirrors.163.com)... 123.58.173.186, 123.58.173.185

Connecting to mirrors.163.com (mirrors.163.com)|123.58.173.186|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 1572 (1.5K) [application/octet-stream]

Saving to: ‘CentOS7-Base-163.repo.1‘


100%[======================================>] 1,572       --.-K/s   in 0s      


2015-06-24 18:40:24 (192 MB/s) - ‘CentOS7-Base-163.repo.1‘ saved [1572/1572]


[root@localhost yum.repos.d]# 


// cp

[root@localhost yum.repos.d]# cp CentOS7-Base-163.repo CentOS-Base.repo

[root@localhost yum.repos.d]# 


// yum clean all

[root@localhost yum.repos.d]# yum clean all

Failed to set locale, defaulting to C

??????fastestmirror, langpacks

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

正在清理软件源: base extras updates

Cleaning up everything

Cleaning up list of fastest mirrors


// yum makecache

[root@localhost yum.repos.d]# yum makecache

Failed to set locale, defaulting to C

??????fastestmirror, langpacks

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

base                                                     | 3.6 kB     00:00     

extras                                                   | 3.4 kB     00:00


// yum update

[root@localhost yum.repos.d]# yum update

Failed to set locale, defaulting to C

??????fastestmirror, langpacks

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

Loading mirror speeds from cached hostfile

????????

--> ??????

---> ??? abrt.x86_64.0.2.1.11-19.el7.centos.0.3 ?? ??

---> ??? abrt.x86_64.0.2.1.11-22.el7.centos.0.1 ?? ??

---> ??? abrt-addon-ccpp.x86_64.0.2.1.11-19.el7.centos.0.3 ?? ??

---> ??? abrt-addon-ccpp.x86_64.0.2.1.11-22.el7.centos.0.1 ?? ??


【CentOS 7.1】使用163的镜像

原文:http://huangchao.blog.51cto.com/10446378/1665191

(0)
(1)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!