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

Cara Mengaktifkan Repositori EPEL Di CentOS 7 / RHEL 7

Repositori EPEL menyediakan paket tambahan untuk Varian Enterprise Linux yang mencakup Red Hat Enterprise Linux (RHEL), CentOS dan Scientific Linux (SL), Oracle Enterprise Linux (OEL) yang tidak tersedia di repositori standar mereka.

Dalam posting ini, kita akan melihat cara mengaktifkan repositori EPEL (Extra Packages for Enterprise Linux) di CentOS 7 / RHEL 7.

Aktifkan Repositori EPEL

CentOS 7

Instal paket konfigurasi repositori EPEL menggunakan perintah berikut.

yum install -y epel-release

Keluaran:

Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================
 Package                         Arch                      Version                 Repository                 Size
===================================================================================================================
Installing:
 epel-release                    noarch                    7-11                    extras                     15 k

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

Total download size: 15 k
Installed size: 24 k
Downloading packages:
epel-release-7-11.noarch.rpm                                                                |  15 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : epel-release-7-11.noarch                                                                        1/1 
  Verifying  : epel-release-7-11.noarch                                                                        1/1 

Installed:
  epel-release.noarch 0:7-11                                                                                       

Complete!

RHEL 7

Instal paket konfigurasi repositori EPEL menggunakan perintah berikut.

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

Keluaran:

Loaded plugins: fastestmirror
epel-release-latest-7.noarch.rpm                                                            |  15 kB  00:00:00     
Examining /var/tmp/yum-root-k6zgIl/epel-release-latest-7.noarch.rpm: epel-release-7-11.noarch
Marking /var/tmp/yum-root-k6zgIl/epel-release-latest-7.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================
 Package                   Arch                Version            Repository                                  Size
===================================================================================================================
Installing:
 epel-release              noarch              7-11               /epel-release-latest-7.noarch               24 k

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

Total size: 24 k
Installed size: 24 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : epel-release-7-11.noarch                                                                        1/1 
  Verifying  : epel-release-7-11.noarch                                                                        1/1 

Installed:
  epel-release.noarch 0:7-11                                                                                       

Complete!

Mencantumkan Semua Repositori

Anda dapat menemukan repo EPEL dalam daftar.

yum repolist

Keluaran:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.fileplanet.com
 * epel: d2lzkl7pfhq30w.cloudfront.net
 * extras: centos.mirrors.tds.net
 * updates: mirror.fileplanet.com
repo id                                      repo name                                                             status
base/7/x86_64                                CentOS-7 - Base                                                       10,097
epel/x86_64                                  Extra Packages for Enterprise Linux 7 - x86_64                        13,384
extras/7/x86_64                              CentOS-7 - Extras                                                        304
updates/7/x86_64                             CentOS-7 - Updates                                                       310
repolist: 25,012

Mencantumkan Paket di Repositori EPEL

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

Daftar paket akan terlihat seperti di bawah ini.

.     .     .
.     .     .

zsh-lovers.noarch                                                   0.9.0-1.el7                                      epel
zstd.x86_64                                                         1.4.2-1.el7                                      epel
zulucrypt.x86_64                                                    5.0.1-1.el7                                      epel
zulucrypt-console.x86_64                                            5.0.1-1.el7                                      epel
zulucrypt-devel.x86_64                                              5.0.1-1.el7                                      epel
zulucrypt-doc.noarch                                                5.0.1-1.el7                                      epel
zulucrypt-libs.x86_64                                               5.0.1-1.el7                                      epel
zvbi.x86_64                                                         0.2.35-1.el7                                     epel
zvbi-devel.x86_64                                                   0.2.35-1.el7                                     epel
zvbi-fonts.noarch                                                   0.2.35-1.el7                                     epel

Paket Pencarian di EPEL Repository

Gunakan opsi pencarian atau daftar untuk mencari paket.

yum search ansible

Keluaran:

Loading mirror speeds from cached hostfile
 * base: mirror.fileplanet.com
 * epel: d2lzkl7pfhq30w.cloudfront.net
 * extras: centos.mirrors.tds.net
 * updates: mirror.fileplanet.com
================================================= N/S matched: ansible ==================================================
ansible-doc.noarch : Documentation for Ansible
ansible-inventory-grapher.noarch : Creates graphs representing ansible inventory
ansible-lint.noarch : Best practices checker for Ansible
ansible-openstack-modules.noarch : Unofficial Ansible modules for managing Openstack
ansible.noarch : SSH-based configuration management, deployment, and task execution system

ATAU

yum list ansible

Keluaran:

Loading mirror speeds from cached hostfile
 * base: mirror.fileplanet.com
 * epel: d2lzkl7pfhq30w.cloudfront.net
 * extras: centos.mirrors.tds.net
 * updates: mirror.fileplanet.com
Available Packages
ansible.noarch                                              2.8.4-1.el7                                              epel

Instal Paket dari Repositori EPEL

Secara default, repositori EPEL diaktifkan. Jadi, Anda dapat menginstal paket apa pun dari repositori EPEL dengan perintah yum sederhana.

yum install ansible

Kesimpulan

Itu saja. Silakan bagikan tanggapan Anda di bagian komentar.


Cent OS
  1. Cara mengaktifkan IPv6 di CentOS / RHEL 7

  2. Cara Mengaktifkan IPv6 Di CentOS / RHEL 5

  3. Cara Mengaktifkan Penerusan X11 di CentOS/RHEL 5,6,7

  1. Cara Instal Pip di CentOS 8 / RHEL 8

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

  3. Cara mengaktifkan IPv6 di CentOS / RHEL 6

  1. Cara Mengaktifkan SELinux Di CentOS/RHEL 7

  2. Cara Membuat Repositori yum di CentOS/RHEL

  3. Cara Mengaktifkan IPv6 di CentOS/RHEL 8