GNU/Linux >> Linux Esercitazione >  >> Linux

Come configurare il repository EPEL in OEL 7

Domanda :Come installare/ottenere pacchetti da EPEL Repository su OEL 7?

1. Crea un file repo come /etc/yum/repos.d/epel-yum-ol7.repo. Ad esempio:

# 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. E quindi esegui il comando "yum repolist" per vedere se il repository è presente.

# 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. Quindi puoi installare i pacchetti di cui hai bisogno come nrpe, nagios, nagios-plugins con i comandi yum. Ad esempio:

# 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. Come configurare il repository YUM in Linux/Centos/Redhat | YUM in Linux/Centos/Redhat

  2. Come aggiungere un repository Yum

  3. Come configurare kdump in Oracle Enterprise Linux (OEL 5,6)

  4. Come configurare il repository EPEL in OEL 7

  5. Come installare/ottenere pacchetti da Oracle EPEL Repository su OEL 7

Come abilitare il repository EPEL su Rocky Linux 8

Come abilitare il repository EPEL su AlmaLinux 8

Come abilitare il repository EPEL su AlmaLinux 8

Come abilitare il repository EPEL su CentOS 8

Come abilitare un repository EPEL

Come configurare e gestire un repository Git remoto su Linux