So sánh rhel repository và epel repository

The Fedora team has developed EPEL [Extra Packages for Enterprise Linux] as an open-source and free repository containing 100% high-quality add-on software packages for several Linux distributions, including Red Hat Enterprise Linux [RHEL], CentOS, and Scientific Linux.

This article explains how to install and enable the EPEL repository on Centos and RHEL 7,

Step 1: EPEL Repository Installation and Enabling on CentOS

Type the following command to install the EPEL release package:

sudo yum install epel-release

Run the command that lists all repositories available to verify that EPEL is enabled.

sudo yum repolist

Output

sudo yum repolist

repo id repo name appstream CentOS Stream 8 - AppStream baseos CentOS Stream 8 - BaseOS epel Extra Packages for Enterprise Linux 8 - x86_64 epel-modular Extra Packages for Enterprise Linux Modular 8 - x86_64 epel-next Extra Packages for Enterprise Linux 8 - Next - x86_64 extras CentOS Stream 8 - Extras

Your CentOS system has been enabled with the EPEL repository.

Step 2: Installing and enabling EPEL on RHEL

Run the following command to enable EPEL.

sudo yum install //dl.fedoraproject.org/pub/epel/epel-release-latest-$[rpm -E '%{rhel}'].noarch.rpm

Both CentOS and RHEL 7 have successfully been configured with the EPEL repository. Hopefully, you have found this helpful article and gained some useful information. Thank you for reading.

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.

  1. Connect to the server via SSH as the root user; or open a terminal if you’re working locally.
  2. Install the EPEL repository with the following command: sudo yum install epel-release
  3. 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:

cd /tmp

Then download the rpm file for installation. The file download depends on what OS version you are using, select from the list bellow:

  • RHEL 7/CentOS 7/etc: wget //dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  • RHEL 6/CentOS 6/etc: wget //dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
  • RHEL 5/CentOS 5/etc: wget //dl.fedoraproject.org/pub/epel/epel-release-latest-5.noarch.rpm

Once you’ve downloaded the EPEL rpm file for your OS version, you can now install the EPEL repository. To install the EPEL rpm run: yum install ./epel-release-latest-*.noarch.rpm

The above command uses a wildcard [*], this allows the command to work no matter which version you are installing.

Related Articles:

  • Use ChatGPT to diagnose and resolve server issues
  • Why is your IP blocked?
  • What is xmlrpc.php and Why Disable It?
  • Underlying Causes and Fixes for “Too Many Redirects” Error
  • How to Disable MySQL Strict Mode in Linux and Windows
  • How To Flush Your Local DNS Cache

About the Author: David Singer

I am a g33k, Linux blogger, developer, student, and former Tech Writer for Liquidweb.com. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....

Chủ Đề