centos镜像 from_【CentOS 7.1】使用163的镜像
CentOS 7.1.1503
// 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 ?? ??
總結(jié)
以上是生活随笔為你收集整理的centos镜像 from_【CentOS 7.1】使用163的镜像的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 订阅mysql的二进制日志_MySQL二
- 下一篇: hive sql 报错后继续执行_Hiv