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

RHEL 9に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!
[usradmin@vmsrhe31 ~]$ sudo poweroff
Connection to vmsrhe31 closed by remote host.
Connection to vmsrhe31 closed.
usradmin@dpc001p1:~$ ssh vmsrhe21
ssh: connect to host vmsrhe21 port 22: No route to host
usradmin@dpc001p1:~$ ssh vmsrhe21
Activate the web console with: systemctl enable --now cockpit.socket

Register this system with Red Hat Insights: insights-client --register
Create an account or view all your systems at https://red.ht/insights-dashboard
Last login: Thu Sep 14 06:36:17 2023 from 10.1.21.21
[usradmin@vmsrhe21 ~]$ sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
Updating Subscription Management repositories.
Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)                                   620  B/s | 4.1 kB     00:06    
Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)                                   1.0 MB/s |  14 MB     00:13    
Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)                                710  B/s | 4.5 kB     00:06    
Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)                                1.7 MB/s |  24 MB     00:14    
Last metadata expiration check: 0:00:03 ago on Thu 14 Sep 2023 07:27:50 AM JST.
epel-release-latest-9.noarch.rpm                                                        2.2 kB/s |  19 kB     00:08    
Dependencies resolved.
========================================================================================================================
 Package                        Architecture             Version                   Repository                      Size
========================================================================================================================
Installing:
 epel-release                   noarch                   9-7.el9                   @commandline                    19 k

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

Total size: 19 k
Installed size: 26 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-9-7.el9.noarch                                                                    1/1 
  Running scriptlet: epel-release-9-7.el9.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-9-7.el9.noarch                                                                    1/1 
Installed products updated.

Installed:
  epel-release-9-7.el9.noarch                                                                                           

Complete!

おわりに

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

関連記事

関連書籍(Amazon)

N/A