最快最稳定的源(EPEL)

国内第三源很是的多,可是速度和稳定方面都不是很好,你们用的较多的应该是网易的源,但我也遇到过网易的源出问题的时候,因此,为你们推荐另外一个又快又稳定的源。centos

EPEL 是什么?缓存

EPEL (Extra Packages for Enterprise Linux,企业版Linux的额外软件包) 是Fedora小组维护的一个软件仓库项目,为RHEL/CentOS提供他们默认不提供的软件包。这个源兼容RHEL及像CentOS和Scientific Linux这样的衍生版本。ide

咱们能够很容易地经过yum命令从EPEL源上获取上万个在CentOS自带源上没有的软件。EPEL提供的软件包大多基于其对应的Fedora软件包,不会与企业版Linux发行版本的软件发生冲突或替换其文件。code

在文本中,我将展现在CentOS下如何安装EPEL源。ci

提示 – RHEL/CentOS系统有许多第三方源,比较流行的好比RpmForge,RpmFusion,EPEL,Remi等等。get

然而须要引发注意的是,若是系统添加了多个第三方源,可能会所以产生冲突——一个软件包能够从多个源获取,一些源会替换系统的基础软件包,从而可能会产生意想不到的错误。已知的就有Rpmforge与EPEL会产生冲突。it

对于这些问题咱们建议,调整源的优先权或者有选择性的安装源,可是这须要复杂的操做,若是你不肯定如何操做,咱们推荐你只安装一个第三方源。io

在CentOS 上安装EPELast

要想安装EPEL,咱们先要下载EPEL的rpm安装包。class

  1. 确认你的CentOS 的版本

首先经过如下命令确认你的CentOS 版本

[root@VM_195_63_centos ~]# cat /etc/redhat-release CentOS release 6.5 (Final)

  1. 下载EPEL

[root@VM_195_63_centos ~]# wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/{Centos-6.repo,epel-6.repo,epel.repo} 或者使用 [root@VM_195_63_centos ~]# rpm -Uvh http://mirrors.ustc.edu.cn/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
三、清空缓存

[root@VM_195_63_centos ~]# yum clean all
四、检查源

[root@VM_195_63_centos ~]# yum repolistLoaded plugins: fastestmirror, securityRepository updates is listed more than once in the configurationRepository centosplus is listed more than once in the configurationRepository contrib is listed more than once in the configurationRepository extras is listed more than once in the configurationRepository epel is listed more than once in the configurationLoading mirror speeds from cached hostfile * base: mirrors.aliyun.com * epel: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.comupdates | 3.4 kB 00:00 updates/primary_db | 3.6 MB 00:00 repo id repo name statusbase CentOS-6 - Base - mirrors.aliyun.com 4926cr Qcloud centos cr - i386 0epel Extra Packages for Enterprise Linux 6 - i386 9500extras CentOS-6 - Extras - mirrors.aliyun.com 34fasttrack Qcloud centos fasttrack - i386 116os Qcloud centos os - i386 4926updates CentOS-6 - Updates - mirrors.aliyun.com 956repolist: 20458
5,生成缓存

[root@VM_195_63_centos ~]# yum makecacheEPEL已经在repo 后列出,而且显示提供了近万个软件包,因此EPEL 已经安装到你的CentOS了。

相关文章
相关标签/搜索