Centos7.x RHEL 配置EPEL第三方YUM源

前端之家收集整理的这篇文章主要介绍了Centos7.x RHEL 配置EPEL第三方YUM源前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

下载并安装了最新的Centos7.0系统,系统默认带的YUM源有时候不能满足需求,故使用fodora epelyum源是个不错的选择,eple所对应的RHEL7和Centos7已经出来了,替换方法如下:

Banner468x120

Epel介绍

Epel介绍

具体请参见:http://fedoraproject.org/wiki/EPEL

如何安装 Epel源到RHEL/CentOS 7/6/5?

通过wget命令下载RPM文件,然后安装。

RHEL/CentOS 7 64 Bit

  1. ##RHEL/CentOS764-Bit##
  2. #wgethttp://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm
  3. #rpm-ivhepel-release-7-0.2.noarch.rpm

RHEL/CentOS 6 32-64 Bit

  1. ##RHEL/CentOS632-Bit##
  2. #wgethttp://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
  3. #rpm-ivhepel-release-6-8.noarch.rpm
  4.  
  5. ##RHEL/CentOS664-Bit##
  6. #wgethttp://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
  7. #rpm-ivhepel-release-6-8.noarch.rpm

RHEL/CentOS 5 32-64 Bit

  1. ##RHEL/CentOS532-Bit##
  2. #wgethttp://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
  3. #rpm-ivhepel-release-5-4.noarch.rpm
  4.  
  5. ##RHEL/CentOS564-Bit##
  6. #wgethttp://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
  7. #rpm-ivhepel-release-5-4.noarch.rpm

RHEL/CentOS 4 32-64 Bit

  1. ##RHEL/CentOS432-Bit##
  2. #wgethttp://download.fedoraproject.org/pub/epel/4/i386/epel-release-4-10.noarch.rpm
  3. #rpm-ivhepel-release-4-10.noarch.rpm
  4.  
  5. ##RHEL/CentOS464-Bit##
  6. #wgethttp://download.fedoraproject.org/pub/epel/4/x86_64/epel-release-4-10.noarch.rpm
  7. #rpm-ivhepel-release-4-10.noarch.rpm

如何检查epel是否安装成功?

使用一下命令:

  1. #yumrepolist

输出如下

  1. [root@Lixiaolong~]#yumrepolist
  2. Loadedplugins:fastestmirror
  3. Loadingmirrorspeedsfromcachedhostfile
  4. *base:mirrors.yun-idc.com
  5. *epel:ftp.sjtu.edu.cn
  6. *extras:mirrors.yun-idc.com
  7. *updates:mirrors.yun-idc.com
  8. repoidreponamestatus
  9. base/7/x86_64CentOS-7-Base8,465
  10. epel/x86_64ExtraPackagesforEnterpriseLinux7-x86_645,036
  11. extras/7/x86_64CentOS-7-Extras30
  12. updates/7/x86_64CentOS-7-Updates423
  13. repolist:13,954
  14. [root@Lixiaolong~]#

如何使用epel源安装软件?

例如想查看cacti信息

  1. #yum--enablerepo=epelinfocacti

Sample Output

2014-07-29_111010

安装则执行以下命令:

  1. #yum--enablerepo=epelinstallcacti

Note: Epel的配置文件在/etc/yum.repos.d/epel.repo.


转自:http://linux.it.net.cn/CentOS/course/2014/1214/10265.html

猜你在找的CentOS相关文章