文章源地址-->怎样更新CentOS6.5的yum源
将yum源设置为国内yum源,可以提升软件包安装和更新的速度,同时避免一些常见软件版本无法找到。
国内源:可以使用wget获取或者直接下载
网易:
CentOS5: http://mirrors.163.com/.help/CentOS5-Base-163.repo
CentOS6: http://mirrors.163.com/.help/CentOS6-Base-163.repo
CentOS7: http://mirrors.163.com/.help/CentOS7-Base-163.repo
中科大的yum源:
CentOS5: https://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=1
CentOS6: https://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=2
CentOS7: https://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=3
sohu的yum源:
http://mirrors.sohu.com/help/CentOS-Base-sohu.repo
这里以网易yum源为例
一、访问网易开源镜像站:http://mirrors.163.com/

二、如上图,点击 centos/ 后面的centos使用帮助

三、根据centos使用帮助操作:
[1] 首先备份/etc/yum.repos.d/CentOS-Base.repo
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
[2] 进入yum源配置文件所在文件夹
[root@localhost yum.repos.d]# cd /etc/yum.repos.d/
[3] 下载163的yum源配置文件,放入/etc/yum.repos.d/(操作前请做好相应备份)
[root@localhost yum.repos.d]# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
[4] 运行yum makecache生成缓存
[root@localhost yum.repos.d]# yum clean all
[root@localhost yum.repos.d]# yum makecache
[5] 更新系统(可选)
[root@localhost yum.repos.d]# yum -y update
Python常用库
STM32移植LWIP之客户端与服务端的数据传输
linux_cam_test文件
DEBUG调试文件
Linux多线程总结
Git add命令
Git使用总结
C语言中可变参数的使用
Hi3518EV300编译U-Boot和内核报错:loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed. Aborted (core dumped)
- 最新文章
-
IQKeyboardManager 状态栏(status bar)问题
ios7 以后准确获取iphone设备的MAC(物理地址)
swizzle method 和消息转发机制的实际使用
解决打开png图片黑屏问题(批量还原Xcode优化后的png)
The `XXXX` target overrides the `HEADER_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-game-desktop/Pods-game-desktop.release.xcconfig'. This can lead to prob
dulicate symbol for architecture i386 或者其他什么CPU架构 比如i386
9 低级发现Mysql多实例
8
7 zabbix主动、被动、trapper模式
6 -zabbix升级 (未完成)