本帖最后由 qidi2015 于 2015-6-29 11:24 编辑
首先,标题学了下雷不撕的风格。
epel是个好东西,不过国外的速度实在是不能忍受。所以 有了这篇文章。
1、 首先卸载以前装的epel 以免影响
rpm -e epel-release
2、 下载阿里提供的epel ,PS 感谢马云。
wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-6.repo
3、yum clean all
4、yum makecache
好了, 现在你要装epel源的软件的时候 不再慢吞吞了。
全部改成阿里云的源
1、rm -rf /etc/yum.repos.d/* (执行此操作的时候记得事先装好wget 不然 你就得挂载光盘用rpm装wget了。)
2、wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-6.repo http://mirrors.aliyun.com/repo/Centos-6.repo
这个时候,执行 yum repolist的结果如下
[root@di02 ~]# yum repolist
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
首先,标题学了下雷不撕的风格。
epel是个好东西,不过国外的速度实在是不能忍受。所以 有了这篇文章。
1、 首先卸载以前装的epel 以免影响
rpm -e epel-release
2、 下载阿里提供的epel ,PS 感谢马云。
wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-6.repo
3、yum clean all
4、yum makecache
好了, 现在你要装epel源的软件的时候 不再慢吞吞了。
全部改成阿里云的源
1、rm -rf /etc/yum.repos.d/* (执行此操作的时候记得事先装好wget 不然 你就得挂载光盘用rpm装wget了。)
2、wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-6.repo http://mirrors.aliyun.com/repo/Centos-6.repo
这个时候,执行 yum repolist的结果如下
[root@di02 ~]# yum repolist
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
0
-P, –directory-prefix=PREFIX 将文件保存到目录 PREFIX/…
wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-6.repo
不用感谢,其他云提供商也有!
wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-6.repo
不用感谢,其他云提供商也有!
编辑回复