How do I enable access to the Extra Packages for Enterprise Linux (EPEL) repository to allow installation of packages that are not available in standard repositories?
Install and enable the EPEL rpm package on RHEL 7 and Amazon Linux 2
Install and enable the EPEL rpm package on RHEL 7 and Amazon Linux 2
[root@ip-172-31-87-43 ~]# sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Install and enable the EPEL rpm package on RHEL 6
[root@ip-172-31-87-43 ~]# sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
Install and enable the EPEL rpm package on CentOS 7 64-bit, CentOS 6 64-bit, and CentOS 6 32-bit
[root@ip-172-31-87-43 ~]# sudo yum install -y epel-release
Enable the EPEL rpm package on Amazon Linux
The EPEL repository is already installed on the original version of Amazon Linux, but you must enable it. You can enable this repository either by using the yum-config-manager command or by editing the epel.repo file.
Enable the EPEL repository on Amazon Linux by using the yum-config-manager command
[root@ip-172-31-87-43 ~]# sudo yum-config-manager --enable epel
Enable the EPEL repository on Amazon Linux by using the vim editor to update the epel.repo file
[root@ip-172-31-87-43 ~]# vim /etc/yum.repos.d/epel.repo
change the entry enabled=0 to enabled=1 that is located in the $basearch section of the epel.repo file
Save and exit the vim editor.
To verify that the EPEL repository is enabled, run the following command:
[root@ip-172-31-87-43 ~]# sudo yum repolist
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
repo id repo name status
*epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 12,973
rhui-REGION-client-config-server-7/x86_64 Red Hat Update Infrastructure 2.0 Client Configuration Server 7 2
rhui-REGION-rhel-server-releases/7Server/x86_64 Red Hat Enterprise Linux Server 7 (RPMs) 23,713
rhui-REGION-rhel-server-rh-common/7Server/x86_64 Red Hat Enterprise Linux Server 7 RH Common (RPMs) 235
repolist: 36,923
No comments:
Post a Comment