zoukankan      html  css  js  c++  java
  • Yum三方仓库——EPEL

    参考:什么是EPEL 及 Centos上安装EPEL

    参考:How to Enable EPEL Repository for RHEL/CentOS 7.x/6.x/5.x

    前言

    RHEL以及他的衍生发行版如CentOS、Scientific Linux为了稳定,官方的rpm repository提供的rpm包往往是很滞后的,当然了,这样做这是无可厚非的,毕竟这是服务器版本,安全稳定是重点。官方的rpm repository提供的rpm包也不够丰富,很多时候需要自己编译又太辛苦了,EPEL恰恰可以解决这两方面的问题。

    什么是EPEL?

    EPEL( Extra Packages for Enterprise Linux )是由 Fedora 社区打造,为 RHEL 及衍生发行版如 CentOS、Scientific Linux 等提供高质量软件包的项目。装上了 EPEL之后,就相当于添加了一个第三方源。如果你知道rpmfusion.org的话,拿 rpmfusion 做比较还是很恰当的,rpmfusion 主要为桌面发行版提供大量rpm包,而EPEL则为服务器版本提供大量的rpm包,而且大多数rpm包在官方 repository 中是找不到的。EPEL项目本身并不是RHEL/Cent OS的一部分,他设计初衷就是提供大量开源软件包,大多数软件包都由Fedora 社区维护。

    如何在RHEL / CentOS 7/6/5中启用EPEL仓库?

    首先,需要使用Wget下载文件,然后在系统上使用rpm命令安装它以启用EPEL仓库。

    RHEL/CentOS 7 64 Bit

    ## RHEL/CentOS 7 64-Bit ##
    # wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    # rpm -ivh epel-release-latest-7.noarch.rpm
    View Code

    RHEL/CentOS 6 32-64 Bit

    ## RHEL/CentOS 6 32-Bit ##
    # wget http://dl.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://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
    # rpm -ivh epel-release-6-8.noarch.rpm
    View Code

    epel仓库配置文件在 /etc/yum.repos.d/epel.repo.

    如何验证EPEL仓库是否启用?

    执行以下命令来验证是否已启用EPEL存储库。

    [root@localhost yum.repos.d]# yum repolist
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * epel: mirrors.yun-idc.com
    repo id                                          repo name                                                                       status
    base/7/x86_64                                    CentOS-7 - Base - 163.com                                                        9,911
    *epel/x86_64                                     Extra Packages for Enterprise Linux 7 - x86_64                                  12,698
    extras/7/x86_64                                  CentOS-7 - Extras - 163.com                                                        434
    updates/7/x86_64                                 CentOS-7 - Updates - 163.com                                                     1,614
    repolist: 24,657
    View Code

    注意这一行“*epel/x86_64                                     Extra Packages for Enterprise Linux 7 - x86_64                                  12,698”

    如何使用EPEL仓库?

    通过--enablerepo=epel 选项,表明我们操作的yum命令是在epel这个仓库进行的。

    举个例子,搜索epel仓库下的zabbix信息

    # yum --enablerepo=epel info zabbix

    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.
    View Code

    安装zabbix

    # yum --enablerepo=epel install zabbix

     



     

  • 相关阅读:
    搭建本地源
    shell中tar加密打包
    mysql出现ERROR 1819 (HY000)的解决方法
    mysql 创建用户及授权(2)
    mysql 创建用户及授权(1)
    Redis 工具 redis-port 使用
    mysql中 drop、truncate和delete的区别
    dlerror和dlclose用法
    dlsym用法
    dlopen用法
  • 原文地址:https://www.cnblogs.com/kelamoyujuzhen/p/9942407.html
Copyright © 2011-2022 走看看