Red Hat Bugzilla – Bug 448412
Minor errors in RPM documentation
Last modified: 2010-03-06 14:49:30 EST
Description of problem:
Section 188.8.131.52. Checking That the Package Is Installed
of the RPM documentation
http://docs.fedoraproject.org/drafts/rpm-guide-en/ch03s02.html states that the
'' rpm -q '' command must be given a package name rather than an rpm package
file. At some point this may have been the case, but thankfully this isn't the
case anymore (CentOS5 rpm version: rpm-4.4.2-47.el5)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Get an RPM file
2. rpm -q some-rpm.rpm
True statements as to whether or not some-rpm is installed.
And profit (cause the documented "rpm isn't smart enough to open the rpm file
and get the package name" behavior is seriously suboptimal especially since the
package name and the rpm file aren't required to be related).
Documentation says that rpm will halt and catch fire, or fail to work, neither
of which is desirable.
Here's the original text:
"Use the rpm –q command to quickly verify a package has been installed. To
verify, you need to use the name of the installed package, not the name of the
And here's some new text:
"use the rpm -q command to quickly verify a package has been installed. To
verify, you can either use the name of the installed package, a partial package
name, or the path to an rpm file."
Moving to the proper (newly minted) component so we can gather and address all
the RPM Guide bugs.
This guide is being resurrected. Reassigned all tickets to developer.
I don't think that comment #1 is correct. You still need the -p option to query a package file (as opposed to an installed package).
[paul@marilyn ~]$ ls bmw*rpm
[paul@marilyn ~]$ rpm -q bmw-release-1-1.fc10.noarch.rpm
package bmw-release-1-1.fc10.noarch.rpm is not installed
[paul@marilyn ~]$ rpm -qp bmw-release-1-1.fc10.noarch.rpm
[paul@marilyn ~]$ rpm -q rpm
[paul@marilyn ~]$ cat /etc/redhat-release
CentOS release 5.4 (Final)
Recommend CLOSED NOTABUG.