Appendix D. Available Tags For --queryformat

The following tags were defined at the time this book was written. For the latest list of available queryformat tags, please issue the following command:

rpm --querytags
    

Keep in mind that the list of tags produced by the --querytags option is the complete list of all tags used by RPM internally; for instance, during package builds. Because of this, some tags do not produce meaningful output when used in a --queryformat format string.

D.1. List of --queryformat Tags

For every tag in this section, there can be as many as three different pieces of information:

  1. A short description of the tag.

  2. Whether the data specified by the tag is an array, and if so, how many members are present in the array.

  3. What modifiers can be used with the tag.

Notes

[1]

Since there is no modifier to display the file states in human-readable form, it will be necessary to manually interpret the flag values, based on the RPMFILE_STATE_xxx #defines contained in rpmlib.h. This file is part of the rpm-devel package and is also present in the RPM source package.

[2]

Since there is no modifier to display the verification flags in human-readable form, it will be necessary to manually interpret the flag values, based on the RPMVERIFY_xxx #defines contained in rpmlib.h. This file is part of the rpm-devel package and is also present in the RPM source package.