Table of Contents

image

To install a software package from the Extras Library, first confirm that the amazon-linux-extras repository is installed on your instance. Then, list the available software packages, enable the one you’re looking for, and then install the package using yum.

Step 1:

Connect to your EC2 Linux Instance using SSH.

Step 2:

Confirm if the amazon-linux-extras package has been installed using the ‘which’ command.

$ which amazon-linux-extras

If the amazon-linux-extras package has not been installed use the below command to install it :

$ sudo yum install -y amazon-linux-extras

Step 3:

List the available topics using the following command:

$ amazon-linux-extras

image

amazon-linux-extras

Step 4:

Here I am enabling dnsmasq.

$ sudo amazon-linux-extras enable dnsmasq2.85

Step 5:

Enter the following commands, these will install dnsmasq.

# yum clean metadata
# yum install dnsmasq

Thanks for reading this post, if you like my work you can support by buying me a pizza. 🍕