[root@localhost ~]# yum history list 或 yum history
Loading "fastestmirror" plugin
Config time: 0.007
Yum version: 3.4.3
ID | Login user | Date and time| Action(s)| Altered
-------------------------------------------------------------------------------3| root <root>|2022-05-20 15:38 | Install |12 EE2| root <root>|2022-05-20 10:38 | I, U |81| System <unset>|2022-05-20 10:05 | Install |311
2、查看某个事务的详细信息
[root@localhost ~]# yum history info 3
Loaded plugins: fastestmirror
Transaction ID :3
Begin time: Mon Jan 1015:38:41 2022
Begin rpmdb :318:0a512f196782814fe726bc61f44b5332aac74b38
End time:15:38:44 2022(3 seconds)
End rpmdb :330:d9fb4e7bea655b40bcabffd6eb2a8a2f81110793
User : root <root>
Return-Code : Success
Command Line :install zabbix-server-mysql zabbix-agent
Transaction performed with:Installed rpm-4.11.3-32.el7.x86_64 @anacondaInstalled yum-3.4.3-158.el7.centos.noarch @anacondaInstalled yum-plugin-fastestmirror-1.1.31-45.el7.noarch @anaconda
Packages Altered:Dep-Install OpenIPMI-libs-2.0.23-2.el7.x86_64 @centos7Dep-Install OpenIPMI-modalias-2.0.23-2.el7.x86_64 @centos7Dep-Install fping-3.10-4.el7.x86_64 @epelDep-Install libevent-2.0.21-4.el7.x86_64 @centos7Dep-Install net-snmp-libs-1:5.7.2-32.el7.x86_64 @centos7Dep-Install traceroute-3:2.0.22-2.el7.x86_64 @centos7Dep-Install unixODBC-2.3.1-11.el7.x86_64 @centos7Dep-Install zabbix50-5.0.18-1.el7.x86_64 @epelInstall zabbix50-agent-5.0.18-1.el7.x86_64 @epelDep-Install zabbix50-dbfiles-mysql-5.0.18-1.el7.noarch @epelDep-Install zabbix50-server-5.0.18-1.el7.noarch @epelInstall zabbix50-server-mysql-5.0.18-1.el7.x86_64 @epel
Scriptlet output:1 sed: can't read /etc/sysconfig/ipmi: No such file or directory
history info
FOR XML PATH 有的人可能知道有的人可能不知道,其实它就是将查询结果集以XML形式展现,有了它我们可以简化我们的查询语句实现一些以前可能需要借助函数活存储过程来完成的工作。那么以一个实例为主. 一.FOR XML PATH 简单介绍 那么还是首先来介绍一下FOR…