🐧 Как Π½Π°ΡΡ‚Ρ€ΠΎΠΈΡ‚ΡŒ EPEL-Ρ€Π΅ΠΏΠΎΠ·ΠΈΡ‚ΠΎΡ€ΠΈΠΉ Π² OEL 7

by itisgood

Вопрос: Как ΡƒΡΡ‚Π°Π½ΠΎΠ²ΠΈΡ‚ΡŒ / ΠΏΠΎΠ»ΡƒΡ‡ΠΈΡ‚ΡŒ ΠΏΠ°ΠΊΠ΅Ρ‚Ρ‹ ΠΈΠ· EPEL Repository Π½Π° OEL 7?

1. Π‘ΠΎΠ·Π΄Π°ΠΉΡ‚Π΅ Ρ„Π°ΠΉΠ» рСпозитория, Π½Π°ΠΏΡ€ΠΈΠΌΠ΅Ρ€ /etc/yum/repos.d/epel-yum-ol7.repo.

НапримСр:

# 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. Π—Π°Ρ‚Π΅ΠΌ запуститС ΠΊΠΎΠΌΠ°Π½Π΄Ρƒ Β«yum repolistΒ», Ρ‡Ρ‚ΠΎΠ±Ρ‹ ΡƒΠ²ΠΈΠ΄Π΅Ρ‚ΡŒ, Π΅ΡΡ‚ΡŒ Π»ΠΈ Ρ‚Π°ΠΊΠΎΠΉ Ρ€Π΅ΠΏΠΎΠ·ΠΈΡ‚ΠΎΡ€ΠΈΠΉ.
# 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. Π—Π°Ρ‚Π΅ΠΌ Π²Ρ‹ ΠΌΠΎΠΆΠ΅Ρ‚Π΅ ΡƒΡΡ‚Π°Π½ΠΎΠ²ΠΈΡ‚ΡŒ Π½ΡƒΠΆΠ½Ρ‹Π΅ Π²Π°ΠΌ ΠΏΠ°ΠΊΠ΅Ρ‚Ρ‹, Ρ‚Π°ΠΊΠΈΠ΅ ΠΊΠ°ΠΊ nrpe, nagios, nagios-plugins с ΠΏΠΎΠΌΠΎΡ‰ΡŒΡŽ ΠΊΠΎΠΌΠ°Π½Π΄ yum.
НапримСр:
# 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) <build@oss.oracle.com>"
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!</build@oss.oracle.com>

You may also like

Leave a Comment