GNU/Linux >> Belajar Linux >  >> Cent OS

Cara Mengaktifkan Repositori EPEL Di Rocky Linux 8 / CentOS 8 / RHEL 8

Extra Packages for Enterprise Linux (EPEL) adalah repositori paket yang menyediakan paket tambahan yang tidak termasuk dalam repositori standar Rocky Linux / RHEL / CentOS.

Komunitas Fedora mengelola repositori EPEL.

Panduan ini membantu Anda cara mengaktifkan repositori EPEL di Rocky Linux 8 / CentOS 8 / RHEL 8.

Aktifkan Repositori EPEL

Repositori EPEL dapat diaktifkan dengan menginstal rpm konfigurasi repositori EPEL.

Linux Rocky 8 / CentOS 8

dnf install -y epel-release

Outputnya akan terlihat seperti di bawah ini

Last metadata expiration check: 0:17:48 ago on Sat 26 Jun 2021 05:46:56 AM UTC.

Dependencies resolved.
===================================================================================================================
 Package                        Arch                     Version                    Repository                Size
===================================================================================================================
Installing:
 epel-release                   noarch                   8-10.el8                    extras                    22 k

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

Total download size: 22 k
Installed size: 30 k
Downloading Packages:
epel-release-8-10.el8.noarch.rpm                                                    195 kB/s |  22 kB     00:00    
-------------------------------------------------------------------------------------------------------------------
Total                                                                               16 kB/s |  22 kB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                           1/1 
  Installing       : epel-release-8-10.el8.noarch                                                               1/1 
  Running scriptlet: epel-release-8-10.el8.noarch                                                               1/1 
  Verifying        : epel-release-8-10.el8.noarch                                                               1/1 

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

Complete!

Selain itu, aktifkan repositori PowerTools karena paket EPEL mungkin bergantung pada paket darinya.

dnf config-manager --set-enabled PowerTools

RHEL 8

dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

Outputnya akan terlihat seperti di bawah ini

Last metadata expiration check: 0:17:48 ago on Sat 26 Jun 2021 05:46:56 AM UTC.
epel-release-latest-8.noarch.rpm                                                    15 kB/s |  21 kB     00:01    
Dependencies resolved.
===================================================================================================================
 Package                      Arch                   Version                    Repository                    Size
===================================================================================================================
Installing:
 epel-release                 noarch                 8-10.el8                    @commandline                  21 k

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

Total size: 21 k
Installed size: 30 k
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                           1/1 
  Installing       : epel-release-8-10.el8.noarch                                                               1/1 
  Running scriptlet: epel-release-8-10.el8.noarch                                                               1/1 
  Verifying        : epel-release-8-10.el8.noarch                                                               1/1 

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

Complete!

Selain itu, aktifkan repositori pembuat Kode siap pakai di RHEL 8 karena paket EPEL mungkin bergantung pada paket darinya.

ARCH=$( /bin/arch )

subscription-manager repos --enable "codeready-builder-for-rhel-8-${ARCH}-rpms"

Mencantumkan Repositori

Anda dapat menemukan repositori EPEL dalam daftar.

dnf repolist

Outputnya akan terlihat seperti di bawah ini

repo id                                                          repo name
appstream                                                        Rocky Linux 8 - AppStream
baseos                                                           Rocky Linux 8 - BaseOS
docker-ce-stable                                                 Docker CE Stable - x86_64
epel                                                             Extra Packages for Enterprise Linux 8 - x86_64
epel-modular                                                     Extra Packages for Enterprise Linux Modular 8 - x86_64
extras                                                           Rocky Linux 8 - Extras

Mencantumkan Paket yang Tersedia Di repositori EPEL

dnf list available --disablerepo=* --enablerepo=epel

Daftar paket akan terlihat seperti di bawah ini.

.     .     .
.     .     .

zork.x86_64                                                                                1.0.3-1.el8                                                              epel
zsh-syntax-highlighting.noarch                                                             0.7.1-1.el8                                                              epel
zswap-cli.x86_64                                                                           0.5.0-1.el8                                                              epel
zvbi.x86_64                                                                                0.2.35-9.el8                                                             epel
zvbi-devel.x86_64                                                                          0.2.35-9.el8                                                             epel
zvbi-fonts.noarch                                                                          0.2.35-9.el8                                                             epel

Paket Pencarian Di Repositori EPE

Anda dapat menggunakan opsi pencarian atau daftar dengan perintah dnf untuk menemukan paket.

dnf search xrdp

ATAU

dnf list xrdp

Keluaran:

Available Packages
xrdp.x86_64                                                                     1:0.9.16-1.el8                                                                      epel

Instal Paket dari Repositori EPEL

Menginstal paket dari repositori EPEL sangatlah mudah. Gunakan perintah dnf untuk menginstal sebuah paket.

dnf install xrdp

Kesimpulan

Itu saja. Saya harap Anda telah mempelajari cara mengaktifkan repositori EPEL di Rocky Linux 8 / CentOS 8 / RHEL 8. Silakan bagikan tanggapan Anda di bagian komentar.


Cent OS
  1. Cara Instal PostgreSQL di CentOS 8 / Rocky Linux 8 / RHEL 8

  2. Cara Menginstal Java Di Rocky Linux 8 / CentOS 8 / RHEL 8

  3. Aktifkan Repositori PowerTools di Rocky Linux 8 - Bagaimana Caranya?

  1. Cara mengaktifkan Repositori EPEL di RHEL 8 / CentOS 8 Linux

  2. Cara Mengaktifkan repositori EPEL di CentOS

  3. Cara Menginstal dan Mengaktifkan Repositori EPEL di Rocky Linux/Centos 8

  1. Cara Mengaktifkan Repositori EPEL di CentOS dan RHEL

  2. Cara Mengaktifkan Repositori EPEL di Server CentOS 8 dan RHEL 8

  3. Cara Mengaktifkan Repositori EPEL Di CentOS 7 / RHEL 7