Table of Contents
RPM包简介
RPM 全名 RedHat Package Managerment,一开始只是Red Hat Linux的软件包格式,它最初的名字为Red Hat软件包管理程序。从那以后,RPM逐渐称为许多其他Linux发行版所接受的一种软件包格式。Linux标准化规范将RPM作为其官方软件包格式。许多Linux发行版至少都可以安装RPM软件包,或者将RPM作为它的标准软件包格式。用户能够只用一条命令来安装软件包,删除或升级软件包也只需要一条命令。此外,RPM自动处理软件包之间的依赖关系检查。RPM系统包含一个数据库,该数据库中记录了已安装的所有软件包的信息,包括每个软件包所提供的内容以及安装每个软件包的要求。
查看rpm包的安装日期和时间
列出所有rpm包的时间信息
通过rpm -qa –last可以列出本机所有rpm包的安装时间,–last参数将结果按照安装时间进行排序,使得最新的包在序列顶部。
[root@storage ~]# rpm -qa --last kernel-devel-4.18.0-553.5.1.el8_10.x86_64 Thu 06 Jun 2024 09:15:38 AM CST python3-perf-4.18.0-553.5.1.el8_10.x86_64 Thu 06 Jun 2024 09:15:34 AM CST kernel-headers-4.18.0-553.5.1.el8_10.x86_64 Thu 06 Jun 2024 09:15:34 AM CST python3-libxml2-2.9.7-18.el8_10.1.x86_64 Thu 06 Jun 2024 09:15:33 AM CST libxml2-devel-2.9.7-18.el8_10.1.x86_64 Thu 06 Jun 2024 09:15:33 AM CST kernel-tools-libs-4.18.0-553.5.1.el8_10.x86_64 Thu 06 Jun 2024 09:15:33 AM CST kernel-tools-4.18.0-553.5.1.el8_10.x86_64 Thu 06 Jun 2024 09:15:33 AM CST kernel-4.18.0-553.5.1.el8_10.x86_64 Thu 06 Jun 2024 09:15:33 AM CST kernel-modules-4.18.0-553.5.1.el8_10.x86_64 Thu 06 Jun 2024 09:15:27 AM CST kernel-core-4.18.0-553.5.1.el8_10.x86_64 Thu 06 Jun 2024 09:15:20 AM CST libxml2-2.9.7-18.el8_10.1.x86_64 Thu 06 Jun 2024 09:15:18 AM CST tuned-2.22.1-4.el8_10.1.noarch Fri 31 May 2024 09:15:06 AM CST polkit-libs-0.115-15.el8_10.2.x86_64 Fri 31 May 2024 09:15:06 AM CST polkit-0.115-15.el8_10.2.x86_64 Fri 31 May 2024 09:15:06 AM CST libstdc++-8.5.0-22.el8_10.i686 Tue 28 May 2024 10:18:36 PM CST libgcc-8.5.0-22.el8_10.i686 Tue 28 May 2024 10:18:36 PM CST glibc-2.28-251.el8_10.2.i686 Tue 28 May 2024 10:18:36 PM CST iwl100-firmware-39.31.5.1-121.el8.1.noarch Tue 28 May 2024 10:18:35 PM CST
查看某个rpm包的时间信息
[root@storage ~]# rpm -q --last kernel-core-4.18.0-553.5.1.el8_10.x86_64 kernel-core-4.18.0-553.5.1.el8_10.x86_64 Thu 06 Jun 2024 09:15:20 AM CST
查看某个rpm包的详细信息
[root@storage ~]# rpm -qi kernel-core-4.18.0-553.5.1.el8_10.x86_64 Name : kernel-core Version : 4.18.0 Release : 553.5.1.el8_10 Architecture: x86_64 Install Date: Thu 06 Jun 2024 09:15:20 AM CST Group : System Environment/Kernel Size : 74271671 License : GPLv2 and Redistributable, no modification permitted Signature : RSA/SHA256, Wed 05 Jun 2024 11:01:10 PM CST, Key ID 2ae81e8aced7258b Source RPM : kernel-4.18.0-553.5.1.el8_10.src.rpm Build Date : Wed 05 Jun 2024 09:35:59 PM CST Build Host : x64-builder02.almalinux.org Relocations : (not relocatable) Packager : AlmaLinux Packaging Team <packager@almalinux.org> Vendor : AlmaLinux URL : http://www.kernel.org/ Summary : The Linux kernel Description : The kernel package contains the Linux kernel (vmlinuz), the core of any Linux operating system. The kernel handles the basic functions of the operating system: memory allocation, process allocation, device input and output, etc.
转载请注明:麦童博客 » 查看 Linux下RPM包的安装时间