0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Tripwire のインストールができなかった時の対処法

Posted at

環境

Centos7(Dockerにて起動)

問題

サーバー構築のセキュリティ強化のためにファイル改竄検知であるTripwire をインストールしようとしてました。以下のエラーが発生しました。

yum -y install tripwire 

Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
 * base: ftp.yz.yamagata-u.ac.jp
 * extras: ftp.yz.yamagata-u.ac.jp
 * updates: ftp.yz.yamagata-u.ac.jp
base                                                     | 3.6 kB     00:00     
extras                                                   | 2.9 kB     00:00     
updates                                                  | 2.9 kB     00:00     
(1/4): base/7/x86_64/group_gz                              | 153 kB   00:00     
(2/4): extras/7/x86_64/primary_db                          | 243 kB   00:00     
(3/4): base/7/x86_64/primary_db                            | 6.1 MB   00:06     
(4/4): updates/7/x86_64/primary_db                         |  12 MB   00:08     
No package tripwire available.
Error: Nothing to do

原因

必要なパッケージがないことなのでしょうか。
標準リポジトリには含まれていないということなのか。

対処策

拡張パッケージであるEPELリポジトリ導入(EPEL)したら解決しました。

fedoraWIKI からの引用
エンタープライズ Linux 用の拡張パッケージ(EPEL) は、 Red Hat Enterprise Linux (RHEL) 向けの高品質なアドオンパッケージであり、CentOS や Scientific Linux (SL) のような RHEL からスピンオフしたディストリビューションと互換性のある、Fedora プロジェクトで有志によって作成されたパッケージになります。Fedora は RHEL のアップストリームであり、EPEL のアドオンパッケージは主に RHEL 向けにビルドされた Fedora リポジトリをソースとしています。

導入の手順は以下の通りです。

EPELリポジトリ導入

rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

バージョンロックプラグイン導入

yum -y install yum-plugin-versionlock

rpm -q openvpn >> /etc/yum/pluginconf.d/versionlock.list

その後、再度実行します

yum -y install tripwire 

Loaded plugins: fastestmirror, ovl, versionlock
Loading mirror speeds from cached hostfile
 * base: ftp.yz.yamagata-u.ac.jp
 * epel: epel.mirror.angkasa.id
 * extras: ftp.yz.yamagata-u.ac.jp
 * updates: ftp.yz.yamagata-u.ac.jp
Resolving Dependencies
--> Running transaction check
---> Package tripwire.x86_64 0:2.4.3.7-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package           Arch            Version                  Repository     Size
================================================================================
Installing:
 tripwire          x86_64          2.4.3.7-1.el7            epel          1.0 M

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

Total download size: 1.0 M
Installed size: 4.2 M
Downloading packages:
warning: /var/cache/yum/x86_64/7/epel/packages/tripwire-2.4.3.7-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Public key for tripwire-2.4.3.7-1.el7.x86_64.rpm is not installed
tripwire-2.4.3.7-1.el7.x86_64.rpm                          | 1.0 MB   00:01     
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importing GPG key 0x352C64E5:
 Userid     : "Fedora EPEL (7) <epel@fedoraproject.org>"
 Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
 Package    : epel-release-7-14.noarch (installed)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : tripwire-2.4.3.7-1.el7.x86_64                                1/1 
  Verifying  : tripwire-2.4.3.7-1.el7.x86_64                                1/1 

Installed:
  tripwire.x86_64 0:2.4.3.7-1.el7                                               

Complete!

できました。Tripwire インストール完了です。

参照

参考にさせていただきました。ありがとうございます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?