当你使用yum安装之后,可能需要知道你的安装记录,
使用
yum history命令,列出安装历史记录
[root@weblogic ~]# yum history
Loaded plugins: fastestmirror, refresh-packagekit, security
ID | Login user | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
5 | root <root> | 2014-03-11 12:06 | Install | 5
4 | root <root> | 2014-03-11 11:17 | Install | 1
3 | root <root> | 2014-03-11 11:11 | Install | 1
2 | root <root> | 2014-02-21 10:39 | Install | 1 EE
1 | System <unset> | 2014-02-20 23:00 | Install | 946
history list
Loaded plugins: fastestmirror, refresh-packagekit, security
ID | Login user | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
5 | root <root> | 2014-03-11 12:06 | Install | 5
4 | root <root> | 2014-03-11 11:17 | Install | 1
3 | root <root> | 2014-03-11 11:11 | Install | 1
2 | root <root> | 2014-02-21 10:39 | Install | 1 EE
1 | System <unset> | 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 <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
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 <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