What is EPEL?
How to set up EPEL?
- Determine which version of an Enterprise Linux you are using by looking in the /etc/system-release file. On my CentOS-6 system it looks like
and on my CentOS 7 system it currently looks like
[root@el-6 ~]# cat /etc/system-release CentOS release 6.9 (Final)
[root@el-7 ~]# cat /etc/system-release CentOS Linux release 7.4.1708 (Core)
- If you are running CentOS or Scientific Linux you can now simply install and enable EPEL with a yum command:
This will install the release keys and files with a package which has been signed by your distribution for you to have a chain of trust.
[root@el-7 ~]# yum --enablerepo=extras install epel-release [root@el-6 ~]# yum --enablerepo=extras install epel-release
- If you are running Red Hat Enterprise Linux, you will need to do some extra steps. We will use EL-7 but they would be similar for EL-6.
- Read the page at https://getfedora.org/keys/faq/
- Download the RPM and GPG key and confirm they are valid.
# wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm # wget https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7 # rpm --import RPM-GPG-KEY-EPEL-7 # rpm -K epel-release-latest-7.noarch.rpm # rpm -K epel-release-latest-7.noarch.rpm epel-release-latest-7.noarch.rpm: rsa sha1 (md5) pgp md5 OK
- If you are more of a curl | su - type person then you can just install directly from the internet using the rpm command. I don't recommend this but it gets asked a lot.
- You can now list the packages using yum list which will give more packages. These can be installed with the normal install methods. If you did not already import the gpg keys, you will be prompted to trust these keys.
[root@el-7 ~]# yum install pax-utils Loaded plugins: auto-update-debuginfo, fastestmirror Loading mirror speeds from cached hostfile * base: mirror.yellowfiber.net * epel: archive.linux.duke.edu * epel-testing: packages.oit.ncsu.edu * extras: mirror.yellowfiber.net * updates: mirror.yellowfiber.net Resolving Dependencies --> Running transaction check ---> Package pax-utils.x86_64 0:1.2.3-1.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved =========================================================================== Package Arch Version Repository Size =========================================================================== Installing: pax-utils x86_64 1.2.3-1.el7 epel-testing 96 k Transaction Summary =========================================================================== Install 1 Package Total download size: 96 k Installed size: 249 k Is this ok [y/d/N]: y Downloading packages: pax-utils-1.2.3-1.el7.x86_64.rpm | 96 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : pax-utils-1.2.3-1.el7.x86_64 1/1 Verifying : pax-utils-1.2.3-1.el7.x86_64 1/1 Installed: pax-utils.x86_64 0:1.2.3-1.el7 Complete!
- Sometimes you may need to install a package which has not made it to stable yet. Please see my earlier post on that.
- I have been told by various people in IRC that they were told by someone else that current version of Amazon Linux was based off EL-6 so they want to use the EL-6 EPEL for it. We have also had lots of reports of people finding things not working at times. I would recommend that any users of Amazon Linux to use what Amazon recommends first.