rpm -qip 查询未安装的包的信息 有问题
rpm -qi 包名 查询已安装的包的信息;
我已经安装了httpd的四个包:
[root@localhost Packages]# rpm -qa|grep httpd
httpd-tools-2.2.15-15.el6.centos.1.i686
httpd-manual-2.2.15-15.el6.centos.1.noarch
httpd-devel-2.2.15-15.el6.centos.1.i686
httpd-2.2.15-15.el6.centos.1.i686
-----------------------------------------------------------------------------------分隔符------------------
我使用rpm -qi httpd-tools 查询已安装的包 httpd-tools-2.2.15-15.el6.centos.1.i686的信息
[root@localhost Packages]# rpm -qi httpd-tools
Name : httpd-tools Relocations: (not relocatable)
Version : 2.2.15 Vendor: CentOS
Release : 15.el6.centos.1 Build Date: Tue 14 Feb 2012 06:27:17 AM CST
Install Date: Wed 07 Oct 2015 07:14:59 PM CST Build Host: c6b18n2.bsys.dev.centos.org
Group : System Environment/Daemons Source RPM: httpd-2.2.15-15.el6.centos.1.src.rpm
Size : 131477 License: ASL 2.0
Signature : RSA/SHA1, Tue 14 Feb 2012 07:11:00 PM CST, Key ID 0946fca2c105b9de
Packager : CentOS BuildSystem <http://bugs.centos.org>
URL : http://httpd.apache.org/
Summary : Tools for use with the Apache HTTP Server
Description :
The httpd-tools package contains tools which can be used with
the Apache HTTP Server.
提示是已安装的包。
----------------分隔符-----------------------------------------------------------------------------------------
既然httpd-tools-2.2.15-15.el6.centos.1.i686这个包已经是安装了的包,那么我用命令
rpm -qip httpd-tools-2.2.15-15.el6.centos.1.i686 查询光盘Packages目录下的这个包的信息,为什么显示没有安装此包?
[root@localhost Packages]# rpm -qip httpd-tools-2.2.15-15.el6.centos.1.i686.rpm
warning: httpd-tools-2.2.15-15.el6.centos.1.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Name : httpd-tools Relocations: (not relocatable)
Version : 2.2.15 Vendor: CentOS
Release : 15.el6.centos.1 Build Date: Tue 14 Feb 2012 06:27:17 AM CST
Install Date: (not installed) Build Host: c6b18n2.bsys.dev.centos.org
Group : System Environment/Daemons Source RPM: httpd-2.2.15-15.el6.centos.1.src.rpm
Size : 131477 License: ASL 2.0
Signature : RSA/SHA1, Tue 14 Feb 2012 07:11:00 PM CST, Key ID 0946fca2c105b9de
Packager : CentOS BuildSystem <http://bugs.centos.org>
URL : http://httpd.apache.org/
Summary : Tools for use with the Apache HTTP Server
Description :
The httpd-tools package contains tools which can be used with
the Apache HTTP Server.
-----------------------------分隔符---------------------------------------------
难道命令只能严格的通过包名与包全名来识别系统有没有安装软件包?