- How do I enable the EPEL repository for my Amazon EC2 instance running CentOS, RHEL, or Amazon Linux?
- Short description
- Resolution
- Amazon Linux
- CentOS
- List enabled repositories
- Как включить репозиторий EPEL в Linux RHEL 8 / CentOS 8
- Установка EPEL на RHEL / CentOS 8
- Для CentOS 8
- Для RHEL 8
- Подтвердите установку EPEL на CentOS 8 / RHEL 8
- How to install EPEL repo in RHEL 8 Linux
- What is EPEL repo?
- Install EPEL repo in RHEL 8
- How to fix «Failed to synchronize cache for repo ‘epel’, ignoring this repo.» ?
- Related Posts
- 1 thought on “How to install EPEL repo in RHEL 8 Linux”
- How to install and enable EPEL repository on a CentOS/RHEL 7
- What is an EPEL repository (repo)?
- Installing EPEL repository on a CentOS Linux and RHEL 7.x
- How to install EPEL repo on a CentOS and RHEL 7.x
- Method #1: Install Extra Packages for Enterprise Linux repository configuration (recommended)
- Method #2: Install the extra EPEL repositories from dl.fedoraproject.org
- List your new repos
- Search and install package
- Example: Search and install htop package from epel repo on a CentOS/RHEL 7.x
- Conclusion
- How to Enable an EPEL repository
- What’s an вЂEPEL repository’?
- Enabling the EPEL repo
- Installing EPEL on CentOS via yum
- Installing EPEL on RHEL/CentOS/etc
How do I enable the EPEL repository for my Amazon EC2 instance running CentOS, RHEL, or Amazon Linux?
Last updated: 2021-02-19
I have an Amazon Elastic Compute Cloud (Amazon EC2) instance running CentOS, Red Hat Enterprise Linux (RHEL), or Amazon Linux. How do I enable access to the Extra Packages for Enterprise Linux (EPEL) repository to allow installation of packages that aren’t available in standard repositories?
Short description
Standard repositories might not provide all the packages that can be installed on CentOS, RHEL, or Amazon Linux-based distributions. Enabling the EPEL repository provides additional options for package installation.
Resolution
Follow these steps to download, install, and enable the EPEL repository on RHEL, CentOS, or Amazon Linux-based distributions:
Amazon Linux
Install the EPEL release package for RHEL 7 and enable the EPEL repository.
Amazon Linux Amazon Machine Image (AMI):
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.
Install the EPEL release package for RHEL 8. Enable both the EPEL and CodeReady Builder repositories. The CodeReady Builder repository contains development tools required by many EPEL packages.
Install and enable the EPEL release package for RHEL 7.
CentOS
Install the EPEL release package for RHEL 8. Enable both the EPEL and PowerTools repositories. The PowerTools repository contains development tools required by many EPEL packages.
Install and enable the EPEL release package. CentOS 7 includes the epel-release package in the base repositories.
List enabled repositories
To verify that the EPEL repository is enabled, run the repolist command.
Источник
Как включить репозиторий EPEL в Linux RHEL 8 / CentOS 8
Как включить репозиторий EPEL в RHEL 8 / CentOS 8 Linux? EPEL — это репозиторий, который предоставляет дополнительные пакеты для Enterprise Linux. Группа Fedora EPEL отвечает за создание и поддержку высококачественного набора дополнительных пакетов для RHEL, CentOS, Scientific Linux и Oracle Linux.
Дистрибутивы RHEL, CentOS, Scientific Linux и Oracle Linux рассчитаны на производительность и стабильность с ограниченным количеством пакетов в их базовых репозиториях. Если вы разработчик, есть вероятность, что некоторые из необходимых вам пакетов недоступны. EPEL-репозиторий устраняет этот пробел, предоставляя дополнительные стабильные пакеты, которые работают для большинства случаев использования.
Установка EPEL на RHEL / CentOS 8
EPEL 8 был официально выпущен для широкой публики. Установка EPEL-репозитория настолько проста, что выполняется с помощью следующей команды.
Это загрузит файл репозитория /etc/yum.repos.d/epel.repo и включит его. Вот результат установки
Для CentOS 8
В CentOS 8 рекомендуется также включить репозиторий PowerTools, поскольку пакеты EPEL могут зависеть от пакетов из него:
Для RHEL 8
- в RHEL 8 требуется также включить репозиторий codeready-builder-for-rhel-8 — * — rpms, поскольку пакеты EPEL могут зависеть от пакетов из него:
Подтвердите установку EPEL на CentOS 8 / RHEL 8
Вы можете подтвердить добавление и функциональность репозитория EPEL, выполнив следующую команду.
Список пакетов, доступных в репозитории EPEL.
Вы можете выполнить фильтрацию, чтобы проверить, доступен ли требуемый пакет в репозитории EPEL.
Чтобы установить пакет из репозитория EPEL, просто запустите
Некоторые зависимости могут быть установлены из базовых репозиториев. Там вы можете установить свои любимые пакеты из репозитория EPEL. На момент написания этой статьи есть пакеты, доступные в репозитории EPEL 7, но еще не в EPEL 8, возможно, вам придется набраться терпения, поскольку ежедневно добавляется больше пакетов.
Источник
How to install EPEL repo in RHEL 8 Linux
Table of Contents
How to install the extra repositories such as Fedora EPEL repo on a Red Hat Enterprise Linux server version 8.x or CentOS Linux server version 8.x? How to install EPEL repo in RHEL 8 Linux. How to install EPEL repo in CentOS 8 Linux.
What is EPEL repo?
Extra Packages for Enterprise Linux (or EPEL) is a Fedora Special Interest Group that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL), Oracle Linux (OL).
EPEL packages are usually based on their Fedora counterparts and will never conflict with or replace packages in the base Enterprise Linux distributions. EPEL uses much of the same infrastructure as Fedora, including buildsystem, bugzilla instance, updates manager, mirror manager and more.
You can check the mirror list to get the list of repositories available at EPEL
Install EPEL repo in RHEL 8
The EPEL Repo contains all the packages and EPEL rpms which can be used to install epel repo in RHEL 8 Linux host.
So one can manually install the EPEL repo rpm using DNF/YUM/RPM.
While working on EPEL repo I found a BUG while trying to setup my repository «Failed to synchronize cache for repo ‘epel’, ignoring this repo.»
How to fix «Failed to synchronize cache for repo ‘epel’, ignoring this repo.» ?
After you install EPEL repo in RHEL 8 Linux it is a good idea to clean up the existing cache
Next you can check the list of available repo on your Linux host using below command
But as you see here I get an error «Failed to synchronize cache for repo ‘epel’, ignoring this repo.» Then another thing worth noticing is the Repo Name for EPEL, which instead of containing the release version, it still contains a variable $release which I assumed can be the cause of this problem
To re-confirm this I also checked their EPEL source rpm which also contained the same file wherein they have either missed to change the $Release variable or this contains a newer way to handle the variable but not properly implemented .
I assume since RHEL 8 is recently released, this is still in BETA and a more stable EPEL repo will be released in future.
But for now to overcome the situation you can manually change this variable in /etc/yum.repos.d/epel.repo as highlighted below
Next clean the existing repo cache and check the list of available repo
So now our EPEL repo is working on RHEL 8 Linux host.
Next you can verify the list of available RPMS under EPEL repo for RHEL 8
So with this we know that the current release of EPEL repo for RHEL 8 is not very stable and our manual workaround can fix «Failed to synchronize cache for repo ‘epel’, ignoring this repo.».
Hopefully the future releases will have more stable version.
Lastly I hope the steps from the article to install EPEL repo in RHEL 8 Linux was helpful. So, let me know your suggestions and feedback using the comment section.
Related Posts
Didn’t find what you were looking for? Perform a quick search across GoLinuxCloud
If my articles on GoLinuxCloud has helped you, kindly consider buying me a coffee as a token of appreciation.
For any other feedbacks or questions you can either use the comments section or contact me form.
Thank You for your support!!
1 thought on “How to install EPEL repo in RHEL 8 Linux”
Thanks, this worked for me! I’m running the free developer version of RHEL 8.
Источник
How to install and enable EPEL repository on a CentOS/RHEL 7
H ow do I install the extra repositories such as Fedora EPEL repo on a Red Hat Enterprise Linux server version 7.x or CentOS Linux server version 7.x?
Tutorial details | |
---|---|
Difficulty level | Easy |
Root privileges | Yes |
Requirements | CentOS/RHEL/Fedora |
Est. reading time | 5m |
You can easily install various packages by configuring a CentOS 7.x or RHEL 7.x system to use Fedora EPEL repos and third party packages. Please note that these packages are not officially supported by either CentOS or Red Hat, but provides many popular packages and apps. This quick tutorial explains how to configure a CentOS or Red Hat Enterprise Linux (RHEL) version 7.x to use the Fedora Extra Packages for Enterprise Linux (EPEL) repository.
What is an EPEL repository (repo)?
The EPEL repository was created by the EPEL group working at the Fedora Project. The EPEL is an acronym for Extra Packages for Enterprise Linux. The EPEL repository used by the following Linux Distributions:
- Red Hat Enterprise Linux (RHEL)
- CentOS
- Oracle Linux
Installing EPEL repository on a CentOS Linux and RHEL 7.x
The procedure to enable EPEL repository for a CentOS/RHEL 7.x server is as follows:
- Open a shell prompt.
- Or login to a host called server1 using ssh client.
- Install epel repository using: yum -y install epel-release
- Refresh epel repo by typing: yum repolist
- Install packages from epel repo : yum install pkg1
How to install EPEL repo on a CentOS and RHEL 7.x
The following instructions assumes that you are running command as root user on a CentOS/RHEL 7.x system and want to use use Fedora Epel repository.
Method #1: Install Extra Packages for Enterprise Linux repository configuration (recommended)
Just type the following yum command on a CentOS 7 or RHEL 7:
sudo yum install epel-release
Fig.01: Installing epel-release package on a Centos 7
Note: If method #1 failed, try the following method #2 to install EPEL Repo.
Method #2: Install the extra EPEL repositories from dl.fedoraproject.org
The command is as follows to download epel release for CentOS and RHEL 7.x using wget command:
To install epel-release-7-11.noarch.rpm, type:
sudo yum install epel-release-latest-7.noarch.rpm
Sample outputs:
List your new repos
Once installed you should see epel repo using the following yum repolist command
$ sudo yum repolist
Sample outputs:
Search and install package
To list all available packages under a repo called epel, enter:
$ sudo yum —disablerepo=»*» —enablerepo=»epel» list available
OR
$ sudo yum —disablerepo=»*» —enablerepo=»epel» list available | grep ‘package’
OR
$ sudo yum —disablerepo=»*» —enablerepo=»epel» list available | less
Sample outputs:
Fig. 02: List all available packages under a EPEL Repo on a CentOS/RHEL/Fedora Linux
- No ads and tracking
- In-depth guides for developers and sysadmins at Opensourceflare✨
- Join my Patreon to support independent content creators and start reading latest guides:
- How to set up Redis sentinel cluster on Ubuntu or Debian Linux
- How To Set Up SSH Keys With YubiKey as two-factor authentication (U2F/FIDO2)
- How to set up Mariadb Galera cluster on Ubuntu or Debian Linux
- A podman tutorial for beginners – part I (run Linux containers without Docker and in daemonless mode)
- How to protect Linux against rogue USB devices using USBGuard
Join Patreon ➔
Example: Search and install htop package from epel repo on a CentOS/RHEL 7.x
And, there you have it, a larger number of packages to install from EPEL repo on a CentOS and Red Hat Enterprise Linux (RHEL) version 7.x.
Conclusion
You learned how to install and enable EPEL repository on a CentOS or RHEL 7.x server. See:
🐧 Get the latest tutorials on Linux, Open Source & DevOps via
Источник
How to Enable an EPEL repository
The EPEL repository is an additional package repository that provides easy access to install packages for commonly used software. This repo was created because Fedora contributors wanted to use Fedora packages they maintain on RHEL and other compatible distributions.
To put it simply the goal of this repo was to provide greater ease of access to software on Enterprise Linux compatible distributions.
What’s an вЂEPEL repository’?
The EPEL repository is managed by the EPEL group, which is a Special Interest Group within the Fedora Project. The вЂEPEL’ part is an abbreviation that stands for Extra Packages for Enterprise Linux. The EPEL group creates, maintains and manages a high-quality set of additional packages. These packages may be software not included in the core repository, or sometimes updates which haven’t been provided yet.
Video by JPalmer The EPEL repository can be used with the following Linux Distributions:
- Red Hat Enterprise Linux (RHEL)
- CentOS
- Scientific Linux
- Oracle Linux
Enabling the EPEL repo
Enabling the EPEL repo will differ slightly depending on which OS you are enabling it from. Overall the installation process for EPEL should be pretty straight forward, there are some distros that make it even easier though! At Liquid Web the only distributions that this will apply to is CentOS; however we’ll also cover the process for RHEL.
Pre-flight Check:
- These instructions were created with Liquid Web servers in mind.
- Root level command line access via SSH will be necessary to follow along.
Installing EPEL on CentOS via yum
By far CentOS is the easiest distro to install EPEL on. The CentOS distribution includes a repo called вЂCentOS Extras’ by default. Within this repo users can find a EPEL package, so in this case enabling EPEL is as easy as installing any other package.
- Connect to the server via SSH as the root user; or open a terminal if you’re working locally.
- Install the EPEL repository with the following command: sudo yum install epel-release
- Confirm your work and refresh the repo list by running: sudo yum repolist
Essentially once you’re logged in as the root user, just run the following command:
sudo yum install epel-release
Once you hit enter Yum will do some work and prompt you with a confirmation dialog. once you confirm the install and hit enter it will complete the install process for you. That’s it, it’s really that simple.
If, for whatever reason, your version of CentOS is missing the CentOS Extras repo necessary for this to work you can follow the directions below.
Installing EPEL on RHEL/CentOS/etc
If you are running a different supported distribution you can install the EPEL rep with the following method. This method should also work on CentOS if you’d like to do a manual install. First start by running the following command:
Then download the rpm file for installation. The file download depends on what OS version you are using, select from the list bellow:
Источник