Querying for RPM package summaries

Querying for the summary of an RPM package is useful when you do not know which product the package belonged to. For instance, it might be useful if you have moved or copied packages from the XL Fortran CD or E-Image layout. The RPM package summary includes a short description of the queried RPM file.

To query for the summary of an RPM package that is not installed, issue the command:

$ rpm --qf="%{summary}\n" -qp rpm_file_name

For instance, to query for the summary of the xlf.bg.lib-14.1.0.0-$B.ppc64.rpm RPM file that has not yet been installed, issue the following command:

$ rpm --qf="%{summary}\n" -qp xlf.bg.lib-14.1.0.0-100701.ppc64.rpm

The resulting output depends on the specific file queried, but the following is a typical example:

IBM XL Fortran for Blue Gene, V14.1 - Fortran Compiler Libraries Package BGQ