最快最稳定的源(EPEL)

╄→гoц情女王★ 提交于 2020-03-23 22:48:24

国内第三源非常的多,但是速度和稳定方面都不是很好,大家用的较多的应该是网易的源,但我也遇到过网易的源出问题的时候,所以,为大家推荐另一个又快又稳定的源。

EPEL 是什么?

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

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

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

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

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

对于这些问题我们建议,调整源的优先权或者有选择性的安装源,但是这需要复杂的操作,如果你不确定如何操作,我们推荐你只安装一个第三方源。

在CentOS 上安装EPEL

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

  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
3、清空缓存

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

[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 makecache
EPEL已经在repo 后列出,并且显示提供了近万个软件包,所以EPEL 已经安装到你的CentOS了。

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!