rpmのインストール日時

表題を知りたい。

■ 環境

  • CentOS 6.9

■ rpm

とあるパッケージがインストールされた日時を知りたい。

$ rpm -qi [package]

上記で知ることができる。下記は”openssl“のパッケージについて調べてみた場合である。

$ rpm -qi openssl
Name        : openssl                      Relocations: (not relocatable)
Version     : 1.0.1e                            Vendor: CentOS
Release     : 57.el6                        Build Date: 2017年03月23日 06時47分09秒
Install Date: 2017年10月17日 19時20分10秒      Build Host: c1bm.rdu2.centos.org
Group       : System Environment/Libraries   Source RPM: openssl-1.0.1e-57.el6.src.rpm
Size        : 4248338                          License: OpenSSL
Signature   : RSA/SHA1, 2017年03月24日 00時04分09秒, Key ID 0946fca2c105b9de
Packager    : CentOS BuildSystem <http://bugs.centos.org>;
URL         : http://www.openssl.org/
Summary     : A general purpose cryptography library with TLS implementation
Description :
The OpenSSL toolkit provides support for secure communications between
machines. OpenSSL includes a certificate management tool and shared
libraries which provide various cryptographic algorithms and
protocols.
$

この中の”Install Date“がこのサーバ上にrpmがインストールされた日時である。

以上。

■ 関連

rpmのインストール日時(2)