如何查看rpm包的安装日期和时间
时间:2019-08-20 17:58:14 来源:igfitidea点击:
RPM表示红帽包管理器,是英文Red Hat Packet Manager的缩写。它是一个基于Red Hat的操作系统(RHEL/CentOS/Scientific Linux)的包管理系统,RPM也可以移植到其他操作系统上,如IBM的AIX和Novell的Netware。
查看rpm包的安装日期和时间
列出所有rpm包的日期和时间信息
[root@localhost ~]# rpm -qa --last
查看某个rpm包的信息
查看某个rpm包的日期和时间
[root@localhost ~]# rpm -q --last basesystem-10.0-4.el6.noarch basesystem-10.0-4.el6.noarch Friday 21 February 2014 07:09:30 PM IST [root@localhost ~]#
查看某个rpm包的详细信息
[root@localhost ~]# rpm -qi libgcc-4.8.5-39.el7.x86_64 Name : libgcc Version : 4.8.5 Release : 39.el7 Architecture: x86_64 Install Date: Wed 30 Sep 2020 01:39:36 PM EDT Group : System Environment/Libraries Size : 179328 License : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD Signature : RSA/SHA256, Thu 22 Aug 2019 05:29:34 PM EDT, Key ID 24c6a8a7f4a80eb5 Source RPM : gcc-4.8.5-39.el7.src.rpm Build Date : Tue 06 Aug 2019 01:15:38 PM EDT Build Host : x86-02.bsys.centos.org Relocations : (not relocatable) Packager : CentOS BuildSystem <http://bugs.centos.org> Vendor : CentOS URL : http://gcc.gnu.org Summary : GCC version 4.8 shared support library Description : This package contains GCC shared support library which is needed e.g. for exception handling support.