查看yum安装历史记录

当你使用yum安装之后,可能需要知道你的安装记录,
使用
yum history命令,列出安装历史记录

[root@weblogic ~]# yum history
Loaded plugins: fastestmirror, refresh-packagekit, security
ID     | Login user               | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
     5 | root               | 2014-03-11 12:06 | Install        |    5  
     4 | root               | 2014-03-11 11:17 | Install        |    1  
     3 | root               | 2014-03-11 11:11 | Install        |    1  
     2 | root               | 2014-02-21 10:39 | Install        |    1 EE
     1 | System            | 2014-02-20 23:00 | Install        |  946  
history list


然后,想看哪个安装条目,使用yum history info ID

[root@weblogic ~]# yum history info 4
Loaded plugins: fastestmirror, refresh-packagekit, security
Transaction ID : 4
Begin time     : Tue Mar 11 11:17:50 2014
Begin rpmdb    : 948:fc9328df06f772ab868b6a10fe79583da1752b47
End time       :            11:17:51 2014 (1 seconds)
End rpmdb      : 949:fa5fedfb9fcc89123371b7cdaab91825311754ec
User           : root
Return-Code    : Success
Command Line   : install finger
Transaction performed with:
    Installed     rpm-4.8.0-37.el6.x86_64                       @anaconda-CentOS-201311272149.x86_64/6.5
    Installed     yum-3.2.29-40.el6.centos.noarch               @anaconda-CentOS-201311272149.x86_64/6.5
    Installed     yum-plugin-fastestmirror-1.1.30-14.el6.noarch @anaconda-CentOS-201311272149.x86_64/6.5
Packages Altered:
    Install finger-0.17-39.el6.x86_64 @base
history info

你可能感兴趣的:(查看yum安装历史记录)