`
openxtiger
  • 浏览: 151226 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

How to Enable EPEL Repository on CentOS for Yum Package Management

 
阅读更多

If you enable EPEL, you can install nagios, or bugzilla, or any other standard open source software just using yum command.

The following yum command displays all the repositories available on your system. As you see below, it has three CentOS-6 repositories (base, extras and updates). This doesn’t have EPEL enabled yet.

# yum repolist
repo id          repo name                   status
base             CentOS-6 - Base             6,294
extras           CentOS-6 - Extras               4
updates          CentOS-6 - Updates            830
repolist: 7,128

Enable EPEL

First, you need to enable EPEL repository on your system. You don’t need to configure this repository manually in your yum. Instead, download the following package and install it, which will enable the EPEL repository on your system.

 

# rpm -ivh epel-release-6-5.noarch.rpm --test
warning: epel-release-6-5.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing...                ########################################### [100%]

You should download the GPG key for EPEL repository from fedoraproject and install it on your system as shown below. For CentOS 6, go to fedoraprojecthttps://fedoraproject.org/keys, and scroll down to RPM-GPG-KEY-EPEL-6 and download it (or) use the direct wget as shown below.

cd
wget https://fedoraproject.org/static/0608B895.txt
mv 0608B895.txt /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

Verify that the key got installed successfully.

# rpm -qa gpg*
gpg-pubkey-0608b895-4bd22942

Now install the epel-release-6-6.noarch package, which will enable EPEL repository on your system.

# rpm -ivh epel-release-6-5.noarch.rpm
Preparing...                ########################################### [100%]
   1:epel-release-6-5.noarch########################################### [100%]

GPG Key ID

As you see from the above rpm command, it says “key ID 0608b895: NOKEY”. This indicates that this is looking for the GPG key with id 0608b895.

When you downloaded the key from fedoraproject, notice that the GPG key is stored in a filename that is just the keyid. As you see from above, we downloaded 0608B895.txt from fedoraproject website.

Once you’ve installed the key, if you do “rpm -qa gpg*”, you’ll see that the gpg key with the keyid 0608b895 is installed.

The key id 0608b895 is part of the gpg package name as shown below.

# rpm -qa gpg*
gpg-pubkey-0608b895-4bd22942

Verify EPEL

Verify that the EPEL repository is enabled as shown below. Now, you’ll see epel repository (apart from the standard base, updates and extras repositories).

# yum repolist
repo id       repo name                                             status
base          CentOS-6 - Base                                       6,294
epel          Extra Packages for Enterprise Linux 6 - x86_64        7,345
extras        CentOS-6 - Extras                                         4
updates       CentOS-6 - Updates                                      928
repolist: 14,571

Finally, you should be able to install lot of standard open source software (For example, nagios, bugzilla, etc.) directly using yum. Now if you do ‘yum info nagios’, it will show the following information. Check the line that starts with “Repo”, which has the value of “epel”, which indicates that this package is from epel repository.

# yum info nagios
Available Packages
Name        : nagios
Arch        : x86_64
Version     : 3.3.1
Release     : 3.el6
Size        : 1.1 M
Repo        : epel
Summary     : Nagios monitors hosts and services and yells if somethings breaks
分享到:
评论

相关推荐

    CENTOS-YUM源包

    常见的有EPEL(Extra Packages for Enterprise Linux)、CENOS Plus、IUS(IUS Community Repository)等。这里以EPEL为例,下载并安装EPEL源: ``` wget ...

    Centos下的yum安装包

    例如,`/etc/yum.repos.d/epel.repo`文件用于启用EPEL(Extra Packages for Enterprise Linux)仓库。 2. **使用本地源安装**: 当网络不可用时,可以将软件包下载到本地,然后使用`--noplugins --disablegpgcheck...

    CentOS7的Yum源

    在CentOS 7中,`Yum`是默认的包管理工具,它通过与各种`repo`(repository,仓库)交互来获取并安装软件。`repo`文件是`Yum`配置的重要部分,它们定义了`Yum`从哪里获取软件包和更新。本篇文章将深入探讨CentOS 7中...

    centos中配置EPEL源

    `Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again` 这个错误是因为EPEL源的配置文件中有一些问题,解决方法是编辑EPEL源的配置文件,使用以下命令: `vi /etc/yum....

    CentOS 通过yum来升级php到php5.6

    name=Remi's RPM repository for Enterprise Linux 6-$basearch mirrorlist=http://rpms.remirepo.net/enterprise/6/remi/mirror enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi [remi-...

    centos7.zip

     Must be a URL to the directory where the yum repository's 'repodata' directory lives  enabled={0|1}  gpgcheck={0|1}  gpgkey=URL  mirrorlist=URL to a file  mirrorlist Specifies a URL to a...

    详解CentOS8更换yum源后出现同步仓库缓存失败的问题

    问题起因:一开始CentOS 8默认的yum源是能够正常使用的,但使用如下命令安装了Development Tools之后: yum groupinstall -y Development Tools 不知道为啥就开始出现同步仓库缓存失败的问题,无法正常安装一些工具...

    yum.repos.d.centos7.tar.gz

    4. **添加第三方仓库**:例如,为了安装EPEL(Extra Packages for Enterprise Linux)扩展库,需要下载对应的`.repo`文件放入`yum.repos.d`目录。 五、使用`yum`命令 1. **安装软件包**:`yum install <package-name...

    自动化部署必备技能—搭建本地YUM仓库.docx

    要成功使用 YUM 工具安装更新软件或系统,就需要有一个包含各种 rpm 软件包的 repository(软件仓库),这个软件仓库习惯称为 yum 源。网络上有大量的 yum 源,但由于受到网络环境的限制,导致软件安装耗时过长甚至...

    Linux中安装yum

    sudo add-apt-repository ppa:linuxuprising/yum sudo apt-get update sudo apt-get install -y yum ``` 在安装`yum`后,你可以开始使用它来管理软件包。以下是一些基本的`yum`命令示例: - 更新所有已安装的...

    epel-release-6-8.noarch.zip

    EPEL是Extra Packages for Enterprise Linux的缩写,是由Fedora项目维护的一个软件仓库,旨在为RHEL(Red Hat Enterprise Linux)及其克隆系统如CentOS、Scientific Linux等提供额外的开源软件包。 EPEL 6-8 版本指...

    redhat5.5 yum-*.rpm

    这可能是官方的EPEL(Extra Packages for Enterprise Linux)扩展仓库,或者是社区支持的其他仓库。 2. 下载仓库的配置文件,通常是`.repo`格式,然后将其放入`/etc/yum.repos.d/`目录。 3. 修改配置文件,设置仓库...

    基于CentOS7 RabbitMQ3.8.4

    name=RabbitMQ Server repository for RHEL/CentOS $releasever baseurl=https://dl.bintray.com/rabbitmq/rpm/centos/$releasever/$basearch/ gpgcheck=1 gpgkey=...

    yum.repos.d.zip

    在Linux系统中,`yum`(Yellowdog Updater, Modified)是CentOS、RHEL等基于RPM包管理系统的软件包管理器,它允许用户安装、更新和删除软件包。`yum.repos.d`目录是`yum`配置的重要部分,存放了定义软件仓库...

    CentOS下实现Cisco iol Web Interface

    ### CentOS 下实现 Cisco IOL Web Interface 的步骤与关键技术点 #### 一、环境准备与配置 **1. 创建挂载点** 在 CentOS 6 系统中,首先需要创建一个用于挂载 CD-ROM 的目录。 ```bash mkdir /media/cdrom `...

    redhat 6 配置 yum 源的两种方法

    这里提到的第三方源有网易、EPEL(Extra Packages for Enterprise Linux)、Repoforge(也称为RPM Fusion)等: - **网易源**:网易提供了CentOS的镜像,可以快速、稳定地获取软件包,适合中国地区的用户。 - **...

    常用yum仓库

    在Linux系统中,`yum`(Yellowdog Updater, Modified)是基于RPM包管理的软件包管理系统,用于安装、更新、卸载和查询软件包。`yum仓库`是存储这些RPM软件包的地方,它提供了方便的网络访问方式来获取和安装软件。本...

    centos7 aarch64架构的自制kvm离线仓库

    EPEL (Extra Packages for Enterprise Linux) 离线仓库 - **定义**:EPEL 是为 RHEL 及其衍生版(如 CentOS)提供的附加软件包仓库。 - **作用**:提供了许多官方仓库未包含但又非常有用的软件包。 ##### 3. KVM ...

    yum安装 ssh:Failed to download metadata for repo ‘AppStream’

    Failed to download metadata for repo 'AppStream' 各种尝试,折腾出了另一个错: Repository base is listed more than once in the configuration 意思是仓库配置重复,于是查看配置文件: cd /etc/yum.repos.d...

    CentOS7 离线安装nginx.zip

    你可以访问Nginx官方网站或EPEL(Extra Packages for Enterprise Linux)存储库来获取适合CentOS 7的版本。确保下载的是与你的系统架构匹配的版本,通常是`nginx.x86_64.rpm`。 一旦你下载了所需的RPM包,将其复制...

Global site tag (gtag.js) - Google Analytics