Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot install inotify on Amazon EC2

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

like image 567
marvinv Avatar asked Nov 20 '14 07:11

marvinv


People also ask

How do I restart Cloud 9 instance?

To reboot an instance using the consoleIn the navigation pane, choose Instances. Select the instance and choose Actions, Instance State, Reboot.


3 Answers

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

like image 180
Sairam Avatar answered Oct 04 '22 13:10

Sairam


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
like image 38
Neal Magee Avatar answered Oct 04 '22 14:10

Neal Magee


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
like image 45
mon Avatar answered Oct 04 '22 14:10

mon