Enable EPEL Repository on Amazon Linux

Amazon Linux provides an easy way to install / enable the EPEL yum repository from the command line.

Use the 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.


Posted

in

by

Tags:

Comments

One response to “Enable EPEL Repository on Amazon Linux”

  1. Alex Avatar
    Alex

    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!

Leave a Reply

Your email address will not be published. Required fields are marked *