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

根據(jù)自己的系統(tǒng)版本安裝,具體 如下:


?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.(確認(rèn)安裝是否成功執(zhí)行下邊命令,會(huì)出現(xiàn)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這個(gè)路徑下)

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

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容