centOS下更换网络yum源

之前在centOS配的是163的yum源,挺坑的,网络连接比较慢,而且包不是很多。下面记录下更改过程:

[root@hehe ~]# yum clean all
[root@hehe ~]# yum list
[root@hehe ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
[root@hehe ~]# sed -i  's/$releasever/6.8/g' /etc/yum.repos.d/CentOS-Base.repo   
[root@xuegod63 ~]# yum clean all
[root@hehe ~]# yum list
即可把aliyun的yum源配置进来。

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native