epel源安装

This how to guide shows you’ll how to enable EPEL repository under RHEL/CentOS 6/5 to install additional standard open source packages by using YUM command.

Install EPEL Repository in Linux

根据自己的系统版本安装,具体 如下:


 RHEL/CentOS 7 64-Bit

wget https://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm

 rpm -ivh epel-release-7-5.noarch.rpm


RHEL/CentOS 6 32-Bit 

wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

 rpm -ivh epel-release-6-8.noarch.rpm


RHEL/CentOS 6 64-Bit 

wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

 rpm -ivh epel-release-6-8.noarch.rpm


 RHEL/CentOS 5 32-Bit

 wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

 rpm -ivh epel-release-5-4.noarch.rpm


RHEL/CentOS 5 64-Bit

 wget http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

 rpm -ivh epel-release-5-4.noarch.rpm


RHEL/CentOS 4 32-Bit

 wget http://download.fedoraproject.org/pub/epel/4/i386/epel-release-4-10.noarch.rpm

rpm -ivh epel-release-4-10.noarch.rpm


RHEL/CentOS 4 64-Bit

 wget http://download.fedoraproject.org/pub/epel/4/x86_64/epel-release-4-10.noarch.rpm

 rpm -ivh epel-release-4-10.noarch.rpm


How Do I Verify EPEL Repo?(如何使用epel源安装软件)

You need to run the following command to verify that the EPEL repository is enabled. Once you ran the command you will see epel repository.(确认安装是否成功执行下边命令,会出现epel repository库

# yum repolist  #查看活跃的库

Sample Output

Loaded plugins: download only, fastestmirror, priorities Loading mirror speeds from cached host file * base: centos.aol.in * epel: ftp.cuhk.edu.hk * extras: centos.aol.in * rpmforge: be.mirror.eurid.eu * updates: centos.aol.inReducing CentOS-5 Testing to included packages only Finished 1469 packages excluded due to repository priority protections repo id                          repo name                                                      statusbase                              CentOS-5 - Base                                              2,718+7epel Extra Packages for Enterprise Linux 5 - i386 4,320+1,408 extras                            CentOS-5 - Extras                                              229+53 rpmforge                          Red Hat Enterprise 5 - RPMforge.net - dag                      11,251 repolist: 19,075

How Do I Use EPEL Repo?(如何使用epel

You need to use YUM command for searching and installing packages. For example we search for Zabbix package using epel repo, lets see it is available or not under epel.

# yum --enable repo=epel info zabbix (查看是否有zabbix软件

Sample Output

Available Packages Name      : zabbix Arch      : i386 Version    : 1.4.7 Release    : 1.el5 Size      : 1.7 M Repo : epel Summary    : Open-source monitoring solution for your IT infrastructure URL        : http://www.zabbix.com/ License    : GPL Description: ZABBIX  is software that monitors numerous parameters of a network.

Let’s install Zabbix package using epel repo option–enable repo=epel switch.

# yum --enable repo=epel install zabbix (安装zabbix)

Note: The epel configuration file is located under /etc/yum.repos.d/epel.repo.(配置文件在/etc/yum.repos.d/epel.repo这个路径下)

This way you can install as many as high standard open source packages using EPEL repo.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容