Skip to content Skip to main navigation Skip to footer

CentOS 查看yum命令的历史记录

如何查看在linux系统下使用yum 命令的历史记录,比如说更新包,删除包或其它的yum信息。yum命令的history选项可以用来查看yum命令的操作历史记录。
linux操作系统

查看yum工具的版本信息

输入下面的命令:

yum info yum | grep --color Version
 

命令输出:

[root@devops Desktop]# yum info yum | grep --color Version
Version     : 3.2.29
Version     : 3.2.29
[root@devops Desktop]#
 

yum history命令查看yum命令的操作记录

输入下面的命令:

yum history
 

或者

yum history list
 

命令输出如下:

[root@devops Desktop]# yum history
Loaded plugins: fastestmirror, refresh-packagekit, security, versionlock
ID     | Login user               | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
     6 |  <devops>                | 2014-12-14 09:11 | Update         |    1
     5 |  <devops>                | 2014-12-14 08:41 | I, U           |    3
     4 |  <devops>                | 2014-12-14 08:37 | Install        |    3
     3 |  <devops>                | 2014-12-14 05:51 | Install        |    1
     2 |  <devops>                | 2014-12-14 04:12 | I, O           |    4
     1 | System <unset>           | 2014-11-26 14:39 | Install        | 1076
 
0 Comments

There are no comments yet

Leave a comment

Your email address will not be published.