GNU/Linux >> Belajar Linux >  >> Linux

Cara mengkonfigurasi repositori EPEL di OEL 7

Pertanyaan :Bagaimana cara menginstal/mendapatkan paket dari EPEL Repository di OEL 7?

1. Buat file repo seperti /etc/yum/repos.d/epel-yum-ol7.repo. Misalnya:

# cat /etc/yum.repos.d/epel-yum-ol7.repo
[ol7_epel]
name=Oracle Linux $releasever EPEL ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL7/developer_EPEL/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

2. Kemudian jalankan perintah “yum repolist” untuk melihat apakah repositori ada di sana.

# yum repolist
Loaded plugins: langpacks
repo id repo name status
ol7_UEKR3/x86_64 Latest Unbreakable Enterprise Kernel Release 3 for Oracle Linux 7Server (x86_64) 669
ol7_epel/x86_64 Oracle Linux 7Server EPEL (x86_64) 991
ol7_latest/x86_64 Oracle Linux 7Server Latest (x86_64) 23,095
repolist: 24,755

3. Kemudian Anda dapat menginstal paket-paket yang Anda butuhkan seperti nrpe, nagios, nagios-plugins dengan perintah yum. Misalnya:

# yum install nrpe
yum install nrpe
Loaded plugins: langpacks
Resolving Dependencies
--> Running transaction check
---> Package nrpe.x86_64 0:3.1.1-1.el7 will be installed
--> Processing Dependency: nagios-common for package: nrpe-3.1.1-1.el7.x86_64
--> Running transaction check
---> Package nagios-common.x86_64 0:4.3.2-8.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved

===============================================================================================================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================================================================================================
Installing:
nrpe x86_64 3.1.1-1.el7 ol7_epel 250 k
Installing for dependencies:
nagios-common x86_64 4.3.2-8.el7 ol7_epel 22 k

Transaction Summary
===============================================================================================================================================================================================================
Install 1 Package (+1 Dependent package)

Total download size: 272 k
Installed size: 334 k
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7Server/ol7_epel/packages/nagios-common-4.3.2-8.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY ] 0.0 B/s | 0 B --:--:-- ETA
Public key for nagios-common-4.3.2-8.el7.x86_64.rpm is not installed
(1/2): nagios-common-4.3.2-8.el7.x86_64.rpm | 22 kB 00:00:00
(2/2): nrpe-3.1.1-1.el7.x86_64.rpm | 250 kB 00:00:01
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 244 kB/s | 272 kB 00:00:01
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Importing GPG key 0xEC551F03:
Userid : "Oracle OSS group (Open Source Software group) "
Fingerprint: 4214 4123 fecf c55b 9086 313d 72f9 7b74 ec55 1f03
Package : 7:oraclelinux-release-7.1-1.0.5.el7.x86_64 (@anaconda/7.1)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : nagios-common-4.3.2-8.el7.x86_64 1/2
Installing : nrpe-3.1.1-1.el7.x86_64 2/2
Verifying : nagios-common-4.3.2-8.el7.x86_64 1/2
Verifying : nrpe-3.1.1-1.el7.x86_64 2/2

Installed:
nrpe.x86_64 0:3.1.1-1.el7

Dependency Installed:
nagios-common.x86_64 0:4.3.2-8.el7

Complete!


Linux
  1. Cara mengkonfigurasi repositori YUM di Linux/Centos/Redhat | YUM di Linux/Centos/Redhat

  2. Cara Menginstal &Mengkonfigurasi Postgres 14 di OpenSUSE Leap 15.3

  3. Cara mengatur repositori EPEL di CentOS 5/6

  1. Bagaimana cara menambahkan repositori Yum

  2. Cara mengkonfigurasi kdump di Oracle Enterprise Linux (OEL 5,6)

  3. Cara menginstal/mendapatkan paket dari Oracle EPEL Repository di OEL 7

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

  2. Cara Mengaktifkan repositori EPEL di CentOS

  3. Cara mengkonfigurasi repositori EPEL di OEL 7