rpm -qpi 查看未安装的rpm信息 ,如 rpm -qpi kernel-default-2.6.32.59-0.7.1.x86_64.rpm
Name : kernel-default Relocations: (not relocatable)
Version : 2.6.32.59 Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
Release : 0.7.1 Build Date: Sun Jul 15 02:02:35 2012
Install Date: (not installed) Build Host: acamar
Group : System/Kernel Source RPM: kernel-default-2.6.32.59-0.7.1.nosrc.rpm
Size : 71488024 License: GPL v2 only
Signature : RSA/8, Sun Jul 15 02:06:03 2012, Key ID e3a5c360307e3d54
Packager : http://bugs.opensuse.org
URL : http://www.kernel.org/
Summary : The Standard Kernel
Description :
The standard kernel for both uniprocessor and multiprocessor systems.
Source Timestamp: 2012-07-13 15:50:56 +0200
GIT Revision: a8f988783941e968c09cfb4df071a0959dd8ddf4
GIT Branch: SLE11-SP1
Distribution: SUSE Linux Enterprise 11
查看未安装rpm的依赖关系,如rpm -qpR kernel-default-2.6.32.59-0.7.1.x86_64.rpm
rpmlib(VersionedDependencies) < = 3.0.3-1
kernel-default-base_x86_64 = 2.6.32.59-0.7.1
coreutils
awk
module-init-tools >= 3.4
perl-Bootloader >= 0.4.15
mkinitrd
/bin/sh
/bin/sh
/bin/sh
/bin/sh
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadIsLzma) <= 4.4.2-1
查看rpm的签名,如rpm --checksig kernel-default-base-2.6.32.59-0.7.1.x86_64.rpm
kernel-default-base-2.6.32.59-0.7.1.x86_64.rpm: rsa sha1 MD5 PGP MD5 NOT OK
如果查看已安装RPM信息,去掉-p参数即可