我已经安装了最新的epel,并希望安装mod_evasive
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Uname -a:
Linux #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
yum repolist:
Loaded plugins: fastestmirror, protectbase, security
Loading mirror speeds from cached hostfile
* base: mirror.amsiohosting.net
* extras: mirrors.supportex.net
* rpmforge: mirror.nl.leaseweb.net
* updates: mirror.nl.leaseweb.net
0 packages excluded due to repository protections
repo id repo name status
base CentOS-6 - Base 6,503+72
extras CentOS-6 - Extras 48
rpmforge RHEL 6 - RPMforge.net - dag 4,663+55
updates CentOS-6 - Updates 917+41
repolist: 12,131
yum --disablerepo="*" --enablerepo="epel" search mod_evasive:
Loaded plugins: fastestmirror, protectbase, security
Error getting repository data for epel, repository not found国防部在conf中被排除在外,但我已经把它从/etc/yum.conf中删除了
发布于 2019-04-19 01:39:46
里奇的回答让我害怕,所以我想找到一个官方的CentOS答案。就是这里,以及它唯一的一个命令。哇哈!
yum --enablerepo=extras install epel-release企业Linux的额外软件包(EPEL) -(参见http://fedoraproject.org/wiki/EPEL)为EL6和EL7提供了Fedora包的重新构建。包不应该取代基本版本,尽管过去在点版本方面存在问题。您可以通过运行
yum --enablerepo=extras install epel-release来安装EPEL。epel发布包包含在默认启用的CentOS Extras存储库中。在#epel中的Freenode、邮件列表上以及它的问题跟踪器上提供支持。如果您愿意在EPEL更新被推到稳定之前帮助测试它们,您可以在您的开发/测试服务器上启用epel测试存储库。在生产系统上启用epel测试不是一个好主意。
发布于 2020-07-14 03:15:02
对于CentOS 7,您可以尝试如下:
yum install epel-release-7https://unix.stackexchange.com/questions/252410
复制相似问题