GNU/Linux >> Linux の 問題 >  >> Linux

OEL 7 で EPEL リポジトリを構成する方法

質問 :OEL 7 で EPEL リポジトリからパッケージをインストール/取得する方法は?

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) "
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. Linux / Centos/RedhatでYUMリポジトリを設定する方法| Linux / Centos/RedhatのYUM

  2. Yumリポジトリを追加する方法

  3. OpenSUSELeap15.3にPostgres14をインストールして設定する方法

  1. CentOS5/6でEPELリポジトリを設定する方法

  2. Oracle Enterprise Linux (OEL 5,6) で kdump を構成する方法

  3. OEL 7 で EPEL リポジトリを構成する方法

  1. RHEL 8 / CentOS8LinuxでEPELリポジトリを有効にする方法

  2. CentOSでEPELリポジトリを有効にする方法

  3. OEL 7 で Oracle EPEL リポジトリからパッケージをインストール/取得する方法