文章源地址-->怎样更新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
非整除集合
集合 set
实现字通配符*
vector
矩阵及其初等变换
求数组中连续子数组(最少有一个元素)的最大和。
最长上升序列(Lis)
st表求区间最大值
[Noip2015] 信息传递
- 最新文章
-
蓝桥杯注意事项
最大公约数与最小公倍数
蓝桥杯打印十字图
上传图片
python中os模块的常用方法
PyThon3字典操作
PyThon3元组操作
PyThon3列表操作
python运算结果保留两位
PyCharm代码格式化(自动加空格
- 热门文章
-
【BZOJ3744】Gty的妹子序列-序列分块+树状数组
【BZOJ2752】高速公路(HAOI2012)-线段树
【BZOJ2333】棘手的操作(SCOI2011)-线段树+并查集+离线处理
【POJ3525】Most Distant Point from the Sea-半平面交+二分答案
【POJ1279】Art Gallery-半平面交
【POJ3243】Clever Y-扩展BSGS算法
【POJ2417】Discrete Logging-BSGS算法
【BZOJ1086】王室联邦(SCOI2005)-树分块
【SPOJ10707】Count on a tree II-树上莫队算法
【BZOJ3289】Mato的文件管理-莫队算法+树状数组