Enable EPEL Repository on Amazon Linux
By : Josh -
Amazon Linux provides an easy way to install / enable the EPEL yum repository from the command line.
amazon-linux-extras command to enable the epel feature, and then install the repository:
amazon-linux-extras enable epel
yum install epel-release
To see which packages are available via
amazon-linux-extras, just type the command without any arguments.
Thank you for this! I’m trying to automate this process in ec2 instances using userdata and couldn’t find a way to do it because when running amazon-linux-extras install epel, it would wait for user input before installing the package and there was no option to assume yes the way yum package manager allowed.
This method makes the automation possible!