我正试图用yum安装nagios-core 3.5.1,使用epel repo。我正面临着问题,因为旧版本的nagios已经从epel-repo中删除。最新的epel-repo将随nagios 4.3.2而来。我正在使用ansible来提供nagios。
这就是我在添加epel-repo之后看到的yum info nagios
的输出。
Available Packages
Name : nagios
Arch : x86_64
Version : 4.3.2
Release : 5.el6
Size : 1.7 M
Repo : epel
Summary : Host/service/network monitoring program
URL : https://www.nagios.org/projects/nagios-core/
License : GPLv2
Description : Nagios is a program that will monitor hosts and services on your
: network. It has the ability to send email or page alerts when a
: problem arises and when a problem is resolved. Nagios is written
: in C and is designed to run under Linux (and some other *NIX
: variants) as a background process, intermittently running checks
: on various services that you specify.
:
: The actual service checks are performed by separate "plugin" programs
: which return the status of the checks to Nagios. The plugins are
: available at https://github.com/nagios-plugins/nagios-plugins
:
: This package provides the core program, web interface, and documentation
: files for Nagios. Development files are built as a separate package.
发布于 2017-11-07 13:01:07
如果您想使用rpm
安装它,请下载包这里并安装它:
rpm -Uvh nagios-3.5.1-1.el6.x86_64.rpm
尝试并查看nagios的旧版本是否仍然可用(请再次检查以确保。你不想无缘无故跳过篮圈)
yum --showduplicates list nagios | expand
如果不存在旧版本:
在/etc/yum/yum.repos.d/
中禁用新的EPEL回购
加上旧的EPEL回购:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
确保在/etc/yum/yum.repos.d/
中启用旧回购,然后安装nagios
yum install nagios -y
发布于 2017-11-07 11:44:07
很方便,您决定不提供发行版,但是通过扣减功能,我提供了到EL6包的链接,这是由fedora koji提供的(这恰好是epel的来源):
https://koji.fedoraproject.org/koji/buildinfo?buildID=460533
https://unix.stackexchange.com/questions/403037
复制相似问题