通过rpm命令查看特定rpm包的安装时间
- 命令解读
[aqjg@master ~]$ rpm -q --qf "%{INSTALLTIME}\n" kernel
1681468253
[aqjg@master ~]$
[aqjg@master ~]$ date -d @`rpm -q --qf "%{INSTALLTIME}\n" kernel`
Fri Apr 14 18:30:53 CST 2023
[aqjg@master ~]$
[aqjg@master ~]$ rpm -qa --last kernel
kernel-3.10.0-1160.el7.x86_64 Fri 14 Apr 2023 06:30:53 PM CST
[aqjg@master ~]$ ~