EPEL (Extra Packages for Enterprise Linux)

> Operating System - Kernel (Windows, Unix, Linux) > Linux / Unix

1 - About

EPEL is open source and free community based package repository project from Fedora team for Linux distribution including:

  • RHEL (Red Hat Enterprise Linux),
  • CentOS,
  • and Scientific Linux.
Advertising

3 - Usage

3.1 - With the rpm

wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm --import https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
rpm -ivh epel-release-latest-7.noarch.rpm
# the epel repo must be now available
yum repolist

3.2 - With ansible

- name: Add the EPEL repository
    become: yes
    yum_repository:
      name: epel
      description: EPEL YUM repo
      baseurl: https://dl.fedoraproject.org/pub/epel/$releasever/$basearch/
      gpgcheck: yes
  • Add the Key
  - name: "Adds the gpg key from the EPEL repo"
    become: yes
    rpm_key:
      state: present
      key: https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
  - name: "Install Jq"
    become: yes
    yum:
      name: jq
      enablerepo: epel
      state: present