Quick Start Guide

File list with complete details (to be
used with -l, -c, or -d)
--dump
List features of the package that anoth-
er package can request with --requires
--provides
Capabilities the package requires
--requires, -R
Installation scripts (preinstall, postin-
stall, uninstall)
--scripts
For example, the command rpm -q -i wget displays the information shown in Exam-
ple 9.2, “rpm -q -i wget” (page 125).
Example 9.2: rpm -q -i wget
Name : wget Relocations: (not relocatable)
Version : 1.11.4 Vendor: openSUSE
Release : 1.70 Build Date: Sat 01 Aug 2009
09:49:48 CEST
Install Date: Thu 06 Aug 2009 14:53:24 CEST Build Host: build18
Group : Productivity/Networking/Web/Utilities Source RPM:
wget-1.11.4-1.70.src.rpm
Size : 1525431 License: GPL v3 or later
Signature : RSA/8, Sat 01 Aug 2009 09:50:04 CEST, Key ID b88b2fd43dbdc284
Packager : http://bugs.opensuse.org
URL : http://www.gnu.org/software/wget/
Summary : A Tool for Mirroring FTP and HTTP Servers
Description :
Wget enables you to retrieve WWW documents or FTP files from a server.
This can be done in script files or via the command line.
[...]
The option -f only works if you specify the complete lename with its full path. Provide
as many lenames as desired. For example, the following command
rpm -q -f /bin/rpm /usr/bin/wget
results in:
rpm-4.8.0-4.3.x86_64
wget-1.11.4-11.18.x86_64
If only part of the lename is known, use a shell script as shown in Example 9.3,
“Script to Search for Packages” (page 126). Pass the partial lename to the script
shown as a parameter when running it.
Managing Software with Command Line Tools 125