Product SiteDocumentation Site

4.2.12. Querying for Package Information

Many of the query format tags refer to package-information data stored in the RPM header, introduced in Chapter 2, RPM Overview . Table 5-3 lists the package-information tags.
Table 5-3 Package-information query tags
Tag
Holds
NAME
Package name
VERSION
Version number
RELEASE
Release number
SUMMARY
One-line summary of the package contents
DESCRIPTION
Descriptive text about the package
BUILDTIME
Time package was built
BUILDHOST
Host package was built on
SIZE
Size of all the regular files in the payload
LICENSE
License package was released under
GROUP
Descriptive group or category name for the package
OS
Operating system package was built for
ARCH
Architecture, such as i386
SOURCERPM
The associated source RPM
CHANGELOGTIME
Array of changelog times
CHANGELOGNAME
Array of changelog names
CHANGELOGTEXT
Array of changelog text entries
PREIN
Pre-install script
POSTIN
Post-install script
PREUN
Pre-uninstall script
POSTUN
Post uninstall script
PLATFORM
Platform
All of these tags, except for the CHANGELOGTIME, CHANGELOGTEXT and CHANGELOGNAME tags, are single-value tags.