ユーザ用ツール

サイト用ツール


centos:yum:history

yumの実行履歴

実行履歴のリストを表示する

# yum history
Loaded plugins: fastestmirror, priorities, security
ID     | Login user               | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
    43 | root <root>              | 2013-08-02 18:33 | Install        |    1   
    42 | root <root>              | 2013-08-02 18:33 | Install        |    1   
    41 | root <root>              | 2013-08-02 18:33 | I, U           |    5   
    40 | root <root>              | 2013-08-02 18:33 | Install        |    2   
history list

詳細な履歴を確認する

# yum history info 43
Loaded plugins: fastestmirror, priorities, security
Transaction ID : 43
Begin time     : Fri Aug  2 18:33:55 2013
Begin rpmdb    : 628:5fb4e341c2ee99db4225b49f1505ee9e607f4339
End time       :            18:33:56 2013 (1 seconds)
End rpmdb      : 629:222dc7984bd03e0e05669409d18a218d78990b69
User           : root <root>
Return-Code    : Success
Command Line   : -y install /root/chef-solo/cookbooks/php/files/default/phpredis-master-1.x86_64.rpm
Transaction performed with:
    Installed     rpm-4.8.0-32.el6.x86_64                       @base
    Installed     yum-3.2.29-30.el6.centos.noarch               @anaconda-CentOS-201207061011.x86_64/6.3
    Installed     yum-plugin-fastestmirror-1.1.30-14.el6.noarch @anaconda-CentOS-201207061011.x86_64/6.3
Packages Altered:
    Install phpredis-master-1.x86_64 @/phpredis-master-1.x86_64
history info

パッケージ名を指定して履歴を検索

# yum history list mysql*
Loaded plugins: fastestmirror, priorities, security
ID     | Login user               | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
    30 | root <root>              | 2013-08-02 18:30 | Install        |    2   
    29 | root <root>              | 2013-08-02 18:29 | Install        |    1   

パッケージ名を指定して履歴の詳細を確認

[root@mc-adm01 ~]# yum history info mysql*
Loaded plugins: fastestmirror, priorities, security
Transaction ID : 30
Begin time     : Fri Aug  2 18:30:15 2013
Begin rpmdb    : 607:a8e3d8dfb919fec6327e964b7bfc1307bb745a39
End time       :            18:30:19 2013 (4 seconds)
End rpmdb      : 609:c524f482e1dfc9a0bb0330f8666de52648312d23
User           : root <root>
Return-Code    : Success
Command Line   : -d0 -e0 -y --enablerepo=remi install mysql-server-5.5.33-1.el6.remi
Transaction performed with:
    Installed     rpm-4.8.0-32.el6.x86_64                       @base
    Installed     yum-3.2.29-30.el6.centos.noarch               @anaconda-CentOS-201207061011.x86_64/6.3
    Installed     yum-plugin-fastestmirror-1.1.30-14.el6.noarch @anaconda-CentOS-201207061011.x86_64/6.3
Packages Altered:
    Install     mysql-server-5.5.33-1.el6.remi.x86_64 @remi
    Dep-Install perl-DBD-MySQL-4.013-3.el6.x86_64     @base
-------------------------------------------------------------------------------
Transaction ID : 29
Begin time     : Fri Aug  2 18:29:12 2013
Begin rpmdb    : 606:3fc053413fae9209607076de6c50f0c6f733d0ce
End time       :                          (0 seconds)
End rpmdb      : 607:a8e3d8dfb919fec6327e964b7bfc1307bb745a39
User           : root <root>
Return-Code    : Success
Command Line   : -d0 -e0 -y --enablerepo=remi install mysql-devel-5.5.33-1.el6.remi
Transaction performed with:
    Installed     rpm-4.8.0-32.el6.x86_64                       @base
    Installed     yum-3.2.29-30.el6.centos.noarch               @anaconda-CentOS-201207061011.x86_64/6.3
    Installed     yum-plugin-fastestmirror-1.1.30-14.el6.noarch @anaconda-CentOS-201207061011.x86_64/6.3
Packages Altered:
    Install mysql-devel-5.5.33-1.el6.remi.x86_64 @remi
history info

historyオプションがないVersionの場合

CentOS5.xなどでyumにhistoryのオプションがない場合は、ログから確認する

# less /var/log/yum.log 
Apr 01 11:36:51 Updated: openssl-1.0.1e-16.el6_5.4.x86_64
Apr 01 11:36:51 Installed: glusterfs-libs-3.4.2-1.el6.x86_64
Apr 01 11:36:52 Installed: glusterfs-3.4.2-1.el6.x86_64
Apr 01 11:36:52 Installed: libgssglue-0.1-11.el6.x86_64
Apr 01 11:36:52 Installed: libtirpc-0.2.1-6.el6_5.1.x86_64
Apr 01 11:36:52 Installed: rpcbind-0.2.0-11.el6.x86_64
Apr 01 11:36:52 Installed: glusterfs-fuse-3.4.2-1.el6.x86_64
Apr 01 11:36:52 Installed: glusterfs-cli-3.4.2-1.el6.x86_64
Apr 01 11:36:53 Installed: glusterfs-server-3.4.2-1.el6.x86_64
Apr 01 11:36:53 Installed: glusterfs-geo-replication-3.4.2-1.el6.x86_64
Apr 01 11:36:54 Updated: openssl-devel-1.0.1e-16.el6_5.4.x86_64
Apr 11 16:52:25 Updated: openssl-1.0.1e-16.el6_5.7.x86_64
Apr 11 16:52:26 Updated: openssl-devel-1.0.1e-16.el6_5.7.x86_64
centos/yum/history.txt · 最終更新: 2014/04/15 03:18 by clownclown

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki