Extra Packages for Enterprise Linux (EPEL)【企业版 Linux 附加软件包(以下简称 EPEL)】是一个由特别兴趣小组创建、维护并管理的,针对 红帽企业版 Linux(RHEL)及其衍生发行版(比如 CentOS、 Scientific Linux)的一个高质量附加软件包项目。
EPEL 的软件包通常不会与企业版Linux官方源中的软件包发生冲突,或者互相替换文件。EPEL与Fedora项目基本一致,包含完整的构建系统、升级管理器、镜像管理器等等。

EPEL
包含一个叫做epel-release的包,这个包包含了EPEL源的gpg密钥和软件源信息。您可以通过yum安装到您的企业版Linux发行版上。除了epel-release源,还有一个叫做epel-testing的源,这个源包含最新的测试软件包,其版本很新但是安装有风险,请自行斟酌。

注意: 有些第三方软件源需要 EPEL 的'epel-testing'源来安装依赖组件,请务必在系统设置中启用本源。 这里 有相关的开启教程。(相关配置文件位于:/etc/yum.repos.d/epel-testing.repo)。



1.首先检查系统是否安装epel-release

  1. [root@localhost ~]
  2. # rpm -q epel-release
  3. package epel-release is not installed

2.安装EPEL

  1. [root@localhost ~]# rpm -ivh http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
  2. Retrieving http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
  3. Preparing...                ########################################### [100%]
  4. 1:epel-release           ########################################### [100%]

注意:

1、要安装最新版本的EPEL,请前往 http://mirrors.ustc.edu.cn/fedora/epel/ 中查找最新版本的URL地址,这里采用的是6.8版本

32位:http://mirrors.ustc.edu.cn/fedora/epel/6/i386/epel-release-6-8.noarch.rpm

64位:http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm



2、若出现下面类似错误,则表示对应的URL已经不存在,需要重新找EPEL的版本,请前往 http://mirrors.ustc.edu.cn/fedora/epel/ 获取需要的版本

  1. [root@localhost ~]# rpm -ivh http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
  2. Retrieving http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
  3. curl: (22) The requested URL returned error: 404 Not Found
  4. error: skipping http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm - transfer failed

#2.1 安装成功

  1. [root@localhost ~]# rpm -q epel-release
  2. epel-release-6-8.noarch

#2.2 查看其所依附的软件文件

  1. [root@localhost ~]# rpm -qR epel-release
  2. /bin/sh
  3. /bin/sh
  4. config(epel-release) = 6-8
  5. redhat-release >= 6
  6. rpmlib(CompressedFileNames) <= 3.0.4-1
  7. rpmlib(FileDigests) <= 4.6.0-1
  8. rpmlib(PayloadFilesHavePrefix) <= 4.0-1
  9. rpmlib(PayloadIsXz) <= 5.2-1

#2.3 卸载

  1. [root@localhost ~]# rpm -e epel-release
  2. warning: /etc/yum.repos.d/epel.repo saved as /etc/yum.repos.d/epel.repo.rpmsave

#2.4 设置源级别

  1. [root@localhost ~]# vi /etc/yum.repos.d/epel.repo
  2. 设置 /etc/yum.repos.d/epel.repo 中源的级别为 priority=11

#2.5 搜索软件包

若要查看 EPEL Repo 中是否存在某个软件包:yum search package-name,若搜索git

  1. [root@localhost ~]# yum search git
  2. Loaded plugins: fastestmirror, refresh-packagekit, security
  3. Loading mirror speeds from cached hostfile
  4. * base: mirrors.aliyun.com
  5. * epel: mirrors.hust.edu.cn
  6. * extras: mirrors.aliyun.com
  7. * updates: mirror.bit.edu.cn
  8. ============================== N/S Matched: git ===============================
  9. nodejs-github-url-from-git.noarch : Parse a GitHub git URL and return the GitHub repository URL
  10. php-phpunit-git.noarch : Simple wrapper for Git
  11. trac-git-plugin.noarch : GIT version control plugin for Trac
  12. GitPython.noarch : Python Git Library
  13. cgit.x86_64 : A fast web interface for git
  14. git-annex.x86_64 : Manage files with git, without checking their contents into git
  15. git-ftp.noarch : Git powered FTP client written as shell script
  16. git-gui.noarch : Git GUI tool
  17. git-review.noarch : A git helper for integration with Gerrit
  18. git2cl.noarch : Converts git logs to GNU style ChangeLog format
  19. gitolite.noarch : Highly flexible server for git directory version tracker
  20. gitosis.noarch : Git repository hosting application
  21. gitstats.noarch : Generates statistics based on GIT repository activity
  22. // ……(略)
  23. tkgate-fr.x86_64 : Locales and examples for tkgate, Digital Circuit Simulator
  24. tkgate-it.x86_64 : Locales and examples for tkgate, Digital Circuit Simulator
  25. tkgate-ja.x86_64 : Locales and examples for tkgate, Digital Circuit Simulator
  26. tuxpaint.x86_64 : Drawing program designed for young children
  27. xmlsec1-devel.i686 : Libraries, includes, etc. to develop applications with XML Digital
  28. : Signatures and XML Encryption support.
  29. xmlsec1-devel.x86_64 : Libraries, includes, etc. to develop applications with XML Digital
  30. : Signatures and XML Encryption support.
  31. Name and summary matches only, use "search all" for everything.

3. 安装第三方软件

使用yum install package-name命令安装第三方软件,如使用yum install git安装git

    1. [root@localhost ~]# yum install git
    2. Loaded plugins: fastestmirror, refresh-packagekit, security
    3. Loading mirror speeds from cached hostfile
    4. epel/metalink                                                 | 5.5 kB     00:00
    5. * base: mirrors.aliyun.com
    6. * epel: ftp.sjtu.edu.cn
    7. * extras: mirrors.aliyun.com
    8. * updates: mirror.bit.edu.cn
    9. epel                                                          | 4.4 kB     00:00
    10. epel/primary_db                                               | 6.0 MB     01:19
    11. Setting up Install Process
    12. Resolving Dependencies
    13. --> Running transaction check
    14. ---> Package git.x86_64 0:1.7.1-3.el6_4.1 will be installed
    15. --> Processing Dependency: perl-Git = 1.7.1-3.el6_4.1 for package: git-1.7.1-3.el6_4.1.x86_64
    16. --> Processing Dependency: perl(Git) for package: git-1.7.1-3.el6_4.1.x86_64
    17. --> Processing Dependency: perl(Error) for package: git-1.7.1-3.el6_4.1.x86_64
    18. --> Running transaction check
    19. ---> Package perl-Error.noarch 1:0.17015-4.el6 will be installed
    20. ---> Package perl-Git.noarch 0:1.7.1-3.el6_4.1 will be installed
    21. --> Finished Dependency Resolution
    22. Dependencies Resolved
    23. ==================================================================================
    24. Package                Arch       Version                 Repository        Size
    25. ==================================================================================
    26. Installing:
    27. git                    x86_64     1.7.1-3.el6_4.1         base             4.6 M
    28. Installing for dependencies:
    29. perl-Error             noarch     1:0.17015-4.el6         base              29 k
    30. perl-Git               noarch     1.7.1-3.el6_4.1         base              28 k
    31. Transaction Summary
    32. ==================================================================================
    33. Install       3 Package(s)
    34. Total download size: 4.7 M
    35. Installed size: 15 M
    36. Is this ok [y/N]: y
    37. Downloading Packages:
    38. (1/3): git-1.7.1-3.el6_4.1.x86_64.rpm                         | 4.6 MB     00:33
    39. (2/3): perl-Error-0.17015-4.el6.noarch.rpm                    |  29 kB     00:00
    40. (3/3): perl-Git-1.7.1-3.el6_4.1.noarch.rpm                    |  28 kB     00:00
    41. ----------------------------------------------------------------------------------
    42. Total                                                          140 kB/s | 4.7 MB     00:34
    43. warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
    44. Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
    45. Importing GPG key 0xC105B9DE:
    46. Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>
    47. Package: centos-release-6-4.el6.centos.10.x86_64 (@anaconda-CentOS-201303020151.x86_64/6.4)
    48. From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
    49. Is this ok [y/N]: y    (注:这里为输入的内容,导入GPG key)
    50. Running rpm_check_debug
    51. Running Transaction Test
    52. Transaction Test Succeeded
    53. Running Transaction
    54. Warning: RPMDB altered outside of yum.
    55. Installing : 1:perl-Error-0.17015-4.el6.noarch                             1/3
    56. Installing : perl-Git-1.7.1-3.el6_4.1.noarch                               2/3
    57. Installing : git-1.7.1-3.el6_4.1.x86_64                                    3/3
    58. Verifying  : git-1.7.1-3.el6_4.1.x86_64                                    1/3
    59. Verifying  : perl-Git-1.7.1-3.el6_4.1.noarch                               2/3
    60. Verifying  : 1:perl-Error-0.17015-4.el6.noarch                             3/3
    61. Installed:
    62. git.x86_64 0:1.7.1-3.el6_4.1
    63. Dependency Installed:
    64. perl-Error.noarch 1:0.17015-4.el6              perl-Git.noarch 0:1.7.1-3.el6_4.1
    65. Complete!

在CentOS上安装第三方软件库EPEL的更多相关文章

  1. CentOS 如何使用第三方软件库-EPEL与RPMForge、RPMFusion软件库

    在CentOS下运行yum install flash-plugin或yum install mplayer的时候,提示库里没有找到这个软件?为什么会这样?因为CentOS是RHEL编译过来的,去掉了 ...

  2. 如何在centos上安装epel源

    一.EPEL是什么? EPEL (Extra Packages for Enterprise Linux,企业版Linux的额外软件包) 是Fedora小组维护的一个软件仓库项目,为RHEL/Cent ...

  3. 什么是EPEL 及 Centos上安装EPEL

    RHEL以及他的衍生发行版如CentOS为了稳定,官方的rpm repository提供的rpm包为了服务器安全稳定更新往往是很滞后的,很多时候需要自己编译那太辛苦了,而EPEL恰恰可以解决这两方面的 ...

  4. 什么是EPEL 及 Centos上安装EPEL(转)

    什么是EPEL 及 Centos上安装EPEL 转自:http://www.unxmail.com/read.php?67 RHEL以及他的衍生发行版如CentOS.Scientific Linux为 ...

  5. Linux系统入门学习:在CentOS上安装phpMyAdmin

    问题:我正在CentOS上运行一个MySQL/MariaDB服务,并且我想要通过网络接口来用phpMyAdmin来管理数据库.在CentOS上安装phpMyAdmin的最佳方法是什么? phpMyAd ...

  6. 在CentOS上安装Java环境

    如何使用yum方式在CentOS上安装Java环境,系统以CentOS6.4为例. 工具/原料 Java JDK yum库 CentOS6.4 方法/步骤 1 查看CentOS自带JDK是否已安装. ...

  7. centos上安装python环境

    1.安装python-pip ​ 首先安装epel扩展源: ​ yum -y install epel-release ​ 更新完成之后,安装pip: ​ yum -y install python- ...

  8. NoSql1 在Linux(CentOS)上安装memcached及使用

    前言:       今天是初五,生活基本要从过年的节奏中回归到正常的生活了,所以想想也该想想与工作有关的事情了.我之前在工作中会经常使用memcached和redis,但是自己一直没有时间系统的好好看 ...

  9. 在Ubuntu|CentOS上安装Shutter截图工具及快捷键设置

    简介 Shutter前身叫GScrot,它是一款相当棒的截图软件. 通过Shutter,你可以截取包括选定区域.全屏幕.窗口.窗口内的控件甚至网页的图像.通过内置的强大插件机制,你可以在截图后,对图像 ...

随机推荐

  1. 用Python实现gmail邮箱服务,实现两个邮箱之间的绑定(上)

    一.本程序的起源 当我决定去中科院实习的时候,我给刘奎恩老师发了封邮件.我对此事是非常看重的,因此经常使用浏览器,打开gmail去查看刘老师有没有给我回复.因为gmail的新邮件推送的功能仅限于打开浏 ...

  2. What's New in Core Data in iOS 7

    What's New in Core Data in iOS 7 该文档主要描述coredata 在ios7的新功能特性. Core Data and iCloud 我们添加改进了对Core Data ...

  3. 关于MEF

    MEF(Managed Extensibility Framework)是.NET Framework 4.0一个重要的库,Visual Studio 2010 Code Editor的扩展支持也是基 ...

  4. Redis系统学习 三、使用数据结构

    前言:上一章,简单介绍了5种数据结构,并给出了一些用例.现在是时候来看看一些高级的,但依然很常见的主题和设计模式 一.大O表示法(Big O Notation ) 常用时间复杂度O(1)被认为是最快速 ...

  5. iOS多线程的初步研究

    iOS多线程的初步研究(四) 理解run loop后,才能彻底理解NSTimer的实现原理,也就是说NSTimer实际上依赖run loop实现的. 先看看NSTimer的两个常用方法: + (NST ...

  6. node包管理器

    NPM小结   nodejs的出现,可以算是前端里程碑式的一个事件,它让前端攻城狮们摆脱了浏览器的束缚,踏上了一个更加宽广的舞台.前端的可能性,从此更加具有想象空间. 随着一系列基于nodes的应用/ ...

  7. synchronized和volatile的使用

    synchronized和volatile的使用 一步一步掌握线程机制(三)---synchronized和volatile的使用 现在开始进入线程编程中最重要的话题---数据同步,它是线程编程的核心 ...

  8. Alfred工具

    神兵利器——Alfred 有人的地方就有江湖,有江湖就有纷争. 很多人说我的文字风格相对轻松和温和,那是因为我很早就认识到,我们没有教育脑残和喷子的义务.在网际多年,看过太多虚拟的刀锋和鲜血,很多人被 ...

  9. JSTL(JSP Standard Tag Library ,JSP标准标签库)

    JSTL标签之核心标签   JSTL(JSP Standard Tag Library ,JSP标准标签库)是一个实现 Web应用程序中常见的通用功能的定制标记库集,这些功能包括迭代和条件判断.数据管 ...

  10. Android应用中使用AsyncHttpClient来异步网络数据

    首先下载AsyncHttpClient的库文件,可以自行搜索,可以到下面地址下载 http://download.csdn.net/detail/xujinyang1234/5767419 测试的Ac ...