-i 查询一个服务的基本信息
[root@desktop ~]# rpm -qi vsftpd //查询vsftpd所有的信息
Name : vsftpd Relocations: (not relocatable)
Version : 2.0.5 Vendor: Red Hat, Inc.
Release : 16.el5_4.1 Build Date: Fri 04 Dec 2009 10:43:08 PM CST
Install Date: Tue 26 Aug 2014 05:48:45 PM CST Build Host: hs20-bc2-5.build.redhat.com
Group : System Environment/Daemons Source RPM: vsftpd-2.0.5-16.el5_4.1.src.rpm
Size : 291530 License: GPL
Signature : DSA/SHA1, Tue 08 Dec 2009 03:51:14 PM CST, Key ID 5326810137017186
Packager : Red Hat, Inc. <
URL :
Summary : vsftpd - Very Secure Ftp Daemon
Description :
vsftpd is a Very Secure FTP daemon. It was written completely from
scratch.
-l 查询安装包内所以的文件名
[root@desktop ~]# rpm -ql vsftpd //安装vsftpd会生成哪些文件
另外我们还可以利用rpm命令生成签名,对安装包进行验证。详细信息参考
rpm.txt