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
相关推荐
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...
问题起因:一开始CentOS 8默认的yum源是能够正常使用的,但使用如下命令安装了Development Tools之后: yum groupinstall -y Development Tools 不知道为啥就开始出现同步仓库缓存失败的问题,无法正常安装一些工具...
yum安装时出现:Cannot retrieve metalink for repository: epel. Please verify its path and try again 在CentOS 6.3 x86_64下安装php-mcrypt的时候出现了问题:Error: Cannot retrieve metalink for repository:...
Failed to download metadata for repo 'AppStream' 各种尝试,折腾出了另一个错: Repository base is listed more than once in the configuration 意思是仓库配置重复,于是查看配置文件: cd /etc/yum.repos.d...
本人安装在linux上安装QQ的目的仅仅是满足不同系统电脑间的文字信息、文件传输和...sudo yum install epel-release sudo yum update sudo yum install wine 然后是下载QQ-linux https://im.qq.com/linuxqq/download.h
对于来自 EPEL Repository 的 RHEL/Fedora/CentOs 1.sudo yum install nodejs 2.npm(Node package Manager) 'yum install npm' 然后运行'npm install' 之后 使用“node index.js”在终端中运行 然后
rhel8-fedora-release:RHEL 8 CentOS 8的50k +软件包,甚至在EPEL启用之前
# Install RHEL EPEL repository $ wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm $ wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm $ sudo rpm -Uvh remi...
yum-epel 属性 node['riak']['install_method'] - 安装 Riak 的方法( package , enterprise_package , source , custom_repository ) node['riak']['platform_bin_dir'] - 二进制文件的基本目录。 node['riak']['...
Just notes 拿到一台干净的centos之后, 初始化Python环境, 一些命令和问题记录而已 ...2. EPEL(Fedora Extra Packages for Enterprise Linux repository ) 参考文档 wget http://dl.fedoraproject.org