LoginSignup
22
26

More than 5 years have passed since last update.

yumでインストールしたパッケージの履歴を確認する

Posted at

yumでインストールしたパッケージの履歴を確認するには、yum historyを実行する。

確認環境はCentOS 7.1で、yumのバージョンは3.4.3。

$ cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)
$ yum --version
3.4.3
...

インストール履歴の確認 yum history package-list

パッケージのインストール履歴は、yum history package-listで確認する。

$ sudo yum history package-list the_silver_searcher
読み込んだプラグイン:fastestmirror
ID     | 操作           | Package
-------------------------------------------------------------------------------
    41 | 更新           | the_silver_searcher-0.30.0-1.el7.x86_64
    41 | 更新           |                     0.33.0-1.el7.x86_64
    36 | インストール   | the_silver_searcher-0.30.0-1.el7.x86_64
history package-list

the_silver_searcherを確認すると、トランザクションIDが36のときにインストールし、IDが41のときに0.30から0.33に更新したことがわかる。

インストール・更新した時の状況を確認 yum history info

yum history package-listで示されるトランザクションIDを用いて、そのときの状況をyum history infoで確認する。

$ sudo yum history info 36
読み込んだプラグイン:fastestmirror
トランザクション ID : 36
開始時間            : Wed May 25 12:12:41 2016
開始 rpmdb          : 471:210f7df23165510b5a2c8ffc5915c47bb1ee5227
終了時間            :                           (0 秒)
終了 rpmdb          : 472:51b1a1a8bdfddc094ea7f7d64acdbd22485dd365
ユーザー            :  <te2u>
終了コード          : 成功
コマンドライン      : install the_silver_searcher
トランザクションの実行:
    インストール rpm-4.11.1-25.el7.x86_64                      @base
    インストール yum-3.4.3-125.el7.centos.noarch               @base
    インストール yum-plugin-fastestmirror-1.1.31-29.el7.noarch @base
切り替えたパッケージ:
    インストール the_silver_searcher-0.30.0-1.el7.x86_64 @epel
history info

the_silver_searcherをインストールしたのは2016/5/25で、時間は殆どかからずパッケージ単体でインストールしている。

$ sudo yum history info 41
読み込んだプラグイン:fastestmirror
トランザクション ID : 41
開始時間            : Thu Mar  2 16:22:49 2017
開始 rpmdb          : 476:9e2d7ca9abc998fed85b9f83b43d6526fb5f9ea9
終了時間            :                          (0 秒)
終了 rpmdb          : 476:1fd2e8c182bdafc223771c3c7a086b8cd091492e
ユーザー            :  <te2u>
終了コード          : 成功
コマンドライン      : install the_silver_searcher
トランザクションの実行:
    インストール rpm-4.11.1-25.el7.x86_64                      @base
    インストール yum-3.4.3-125.el7.centos.noarch               @base
    インストール yum-plugin-fastestmirror-1.1.31-29.el7.noarch @base
切り替えたパッケージ:
    更新 the_silver_searcher-0.30.0-1.el7.x86_64 @epel
    更新                     0.33.0-1.el7.x86_64 @epel
history info

the_silver_searcherを更新したのは2017/3/2で、時間は殆どかからずパッケージ単体を更新している。

参考

関連

22
26
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
22
26