12

I have an AWS EC2 instance and wants to install inotify-tools. I've added the repository by executing the command: rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm then execute yum install inotify-tools but getting No package inotify-tools available.

Please help

marvinv
  • 181
  • 2
  • 9

3 Answers3

27

I bumped into this issue as well. The solution below is a bit easier than grabbing an RPM or the source and compiling.

The Amazon Linux AMI comes with the EPEL repository source, but it's disabled. So you need to enable it.

Original Amazon Linux (1) AMI:

sudo yum-config-manager --enable epel

Amazon Linux 2 AMI:

sudo amazon-linux-extras install epel -y

Then run a regular yum update and install the toolset:

sudo yum update
sudo yum install inotify-tools
Neal Magee
  • 1,642
  • 18
  • 28
3

How do I enable the EPEL repository for my Amazon EC2 instance running CentOS, RHEL, or Amazon Linux?

Install and enable the EPEL rpm package on RHEL 7 and Amazon Linux 2

sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
mon
  • 18,789
  • 22
  • 112
  • 205
  • Voted both answers up. To resolve my issue I did following 3 steps 1. sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm (answer by @mon) 2. sudo yum-config-manager --enable epel 3. sudo yum update 4. sudo yum install inotify-tools (answer by @Neal) Thanks – Babar Baig Dec 19 '19 at 13:55
2
sudo amazon-linux-extras install epel
sudo yum install inotify-tools

For me, none of the above answers worked. I had to install epel-release and then install inotify-tools

Sairam
  • 2,708
  • 1
  • 25
  • 34