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 ?? ??
原文地址:http://huangchao.blog.51cto.com/10446378/1665191