查看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 <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
  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值