Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install fail2ban on our Amazon EC2 Linux AMI (CentOS). I know that fail2ban is in the EPEL so I have done the following:

sudo rpm -Uvh epel-release*rpm

However, when I do that I get the following message:

package epel-release-6-8.9.amzn1.noarch (which is newer than epel-release-6-8.noarch) is already installed

Which implies to me that EPEL is already available but if I do:

sudo yum install fail2ban

I get:

Loaded plugins: priorities, security, update-motd, upgrade-helper
amzn-main                                                                                   | 2.1 kB     00:00
amzn-updates                                                                                | 2.3 kB     00:00
Setting up Install Process
No package fail2ban available.
Error: Nothing to do

I assume that I am misunderstanding something but how can I install from EPEL?

EDIT: I have just done the following and found that the repo is not enabled:

yum repolist all

SO how do I enable a repo on EC2?

share|improve this question
OK so I am not allowed to answer my own question yet but solved it with: yum-config-manager --enable epel – williamsdb Apr 8 '13 at 9:05
up vote 17 down vote accepted

You should check that epel is enabled using

yum repolist enabled

If it's not then you can edit /etc/yum.repos.d/epel.repo and change the [epel] section




or use

 yum-config-manager --enable epel
share|improve this answer
OMG I LOVE YOU SO MUCH. – yellottyellott Oct 4 '13 at 0:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.