有没有办法在不下载或安装 RPM 的情况下获取它的发布日期(通过命令行)?
我可以通过以下命令获取详细信息,但找不到该特定 RPM 的发布日期:
[root@connect ~]# yum info kernel-2.6.32-642.6.2.el6.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.excellmedia.net
* epel: ftp.jaist.ac.jp
* extras: centos.excellmedia.net
* updates: centos.excellmedia.net
Available Packages
Name : kernel
Arch : x86_64
Version : 2.6.32
Release : 642.6.2.el6
Size : 32 M
Repo : updates
Summary : The Linux kernel
URL : http://www.kernel.org/
License : GPLv2
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.
答案1
curl -I http://vault.centos.org/6.8/updates/Source/SPackages/kernel-2.6.32-642.6.2.el6.src.rpm 2>&1 | grep Last-Modified
返回:
Last-Modified: Wed, 26 Oct 2016 07:31:10 GMT
使用您想要检查的 RPM 的地址,无需下载或安装即可得到答案。