EPEL 是 Extra Packages for Enterprise Linux 的缩写(EPEL),是用于 Fedora-based Red Hat Enterprise Linux (RHEL) 的一个高质量软件源,因此同时也适用于 CentOS 或者 Scientific Linux 等发行版。 html
为了保证系统的稳定性,强烈建议安装使用 YUM 的优先级控制功能。 linux
原始参考页面: centos
# 7.2 yum install http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm
# 6.8 32位 yum install http://mirrors.sohu.com/fedora-epel/6/i386/epel-release-6-8.noarch.rpm
上面是 Sohu 的镜像,或者也可从教育网镜像下载(USTC) 安全
# 6.8 32位,教育网镜像(USTC) yum install http://mirrors.ustc.edu.cn/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
若是是 64 位系统,则改成 编辑器
# 6.8 64位 x86_64 yum install http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
或 网站
# 6.8 64位 x86_64,教育网镜像(USTC) yum install http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
** 能够查看 EPEL 安装源下载页面以肯定当前的最新版本(注意选择合适的系统:32位在/i386 目录下;64 位在 /x86_64 目录下)。 url
EPEL 的官方文档/支持网站是 Fedora EPEL Wiki。 spa
2014-11-02 .net
增长 EL 7.2 下载地址。 插件
2013-09-27
更新到 EL 6.8 下载地址。
2012-09-27
更新到 EL 6.7 下载地址。
2012-02-24
更新文中 EL6 版本下载连接到新地址
RHEL/CentOS/Fedora各类源(EPEL、Remi、RPMForge、RPMFusion)配置
CentOS默认自带CentOS-Base.repo源,但官方源中去除了不少有版权争议的软件,并且安装的软件也不是最新的稳定版。Fedora自带的源中也找不到不少多媒体软件,若是须要安装,必需先添加其余源,如RPMFusion和RPMForge等第三方软件库。
下面GoFace来一一介绍各类第三方软件库,如下软件库适用于与RHEL彻底兼容的linux发行版,如CentOS,Fedora,Scientific Linux。Scientific Linux你们可能有点陌生,它与CentOS相似,是RedHat Linux的克隆版,GoFace以前有过介绍:http://blog.51osos.com/linux/scientific-linux/ 。
EPEL源
EPEL,即Extra Packages for Enterprise Linux,是由 Fedora 社区建立维护,为 RHEL 及衍生发行版如 CentOS、Scientific Linux 等提供高质量软件包的项目。EPEL中含有大量的软件,对官方标准源是一个很好的补充。
“EPEL (Extra Packages for Enterprise Linux ) is a Fedora Special Interest Group that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL).”
64位,6.0版安装:
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm
其余版本自行浏览 http://dl.fedoraproject.org/pub/epel/
wiki:http://fedoraproject.org/wiki/EPEL
Fedora EPEL 下载:http://mirrors.fedoraproject.org/publiclist/EPEL/
EPEL 下载地址:http://fedoraproject.org/wiki/EPEL
Remi源
Remi源你们或许不多据说,不过Remi源GoFace强烈推荐,尤为对于不想编译最新版的linux使用者,由于Remi源中的软件几乎都是最新稳定版。或许您会怀疑稳定不?放心吧,这些都是Linux骨灰级的玩家编译好放进源里的,他们对于系统环境和软件编译参数的熟悉程度毋庸置疑。
Remi下载地址:http://rpms.famillecollet.com/
您也须要针对不一样的版本号下载。
RPMForge源
RPMForge是CentOS系统下的软件仓库,拥有4000多种的软件包,被CentOS社区认为是最安全也是最稳定的一个软件仓库。
RPMForge官方网站:http://repoforge.org/
http://repoforge.org/use/
RPMForge下载地址:
32位:http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/
64位:http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/
RPMFusion源
若是您如今正在使用Fedora 15,对RPMFusion必定不陌生吧,各类音频软件如MPlayer在标准源中是没有的,通常先安装RPMFusion源,以后就能够放便地yum install各类须要的软件啦。
CentOS官方说RPMFusion软件库里面的软件稳定性不如rpmforge。
RPMFusion官网:http://rpmfusion.org/
Fedora 13, 14 and 15:
su -c ’yum localinstall –nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.
noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm’
RHEL 6/CentOS 6 :
su -c ’rpm -Uvh http://download1.rpmfusion.org/free/el/updates/testing/6/i386/rpmfusion-free-release-6-0.1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/testing/6/i386/rpmfusion-nonfree-release-6-0.1.noarch.rpm’
其余版本请详见:http://rpmfusion.org/Configuration
[size=5]如何使用各类源
以上源对CentOS等系统彻底兼容,但各软件库之间并不能保证彻底兼容没有冲突。若是您须要使用以上源,您须要安装yum-priorities插件。安装yum-priorities插件后,您能够给各个源设置优先级priority。通常设置官方标准源优先级为1,最高,第三方推荐>10
priority=N (N为1到99的正整数,数值越小越优先)
[base], [addons], [updates], [extras] … priority=1
[CentOSplus],[contrib] … priority=2
其余第三的软件源为:priority=N (推荐N>10)
#vi CentOS-Base.repo
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
priority=1
#released updates
……
#wget http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
#wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
[root@GoGo yum.repos.d]# ls
CentOS-Base.repo CentOS-Media.repo epel-testing.repo
CentOS-Debuginfo.repo epel.repo remi.repo
vi remi.repo 将[remi] 中的 enabled=0 改为 enabled=1 来启用 remi 源
[root@GoGo yum.repos.d]# rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
[root@GoGo yum.repos.d]# rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-remi
在remi.repo中和epel.repo中添加priority设置便可使用。