RHEL 8にEPELのリポジトリを追加する!

RHEL 8にEPELのリポジトリを追加します。

パッケージを利用してEPELのリポジトリを追加する!

Fedora提供のパッケージを利用して、EPELのリポジトを追加します。

$ sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)                                   590  B/s | 4.1 kB     00:07    
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)                                   4.1 MB/s |  63 MB     00:15    
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)                                678  B/s | 4.5 kB     00:06    
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)                                3.9 MB/s |  59 MB     00:14    
Last metadata expiration check: 0:00:16 ago on Thu 14 Sep 2023 07:18:00 AM JST.
epel-release-latest-8.noarch.rpm                                                        2.5 kB/s |  25 kB     00:09    
Dependencies resolved.
========================================================================================================================
 Package                       Architecture            Version                      Repository                     Size
========================================================================================================================
Installing:
 epel-release                  noarch                  8-19.el8                     @commandline                   25 k

Transaction Summary
========================================================================================================================
Install  1 Package

Total size: 25 k
Installed size: 35 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                1/1 
  Installing       : epel-release-8-19.el8.noarch                                                                   1/1 
  Running scriptlet: epel-release-8-19.el8.noarch                                                                   1/1 
Many EPEL packages require the CodeReady Builder (CRB) repository.
It is recommended that you run /usr/bin/crb enable to enable the CRB repository.

  Verifying        : epel-release-8-19.el8.noarch                                                                   1/1 
Installed products updated.

Installed:
  epel-release-8-19.el8.noarch                                                                                          

Complete!

おわりに

Fedora提供のRPMパッケージを使用すると、容易にEPELのリポジトリを追加することができます。

関連記事