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 C/C++ 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 vac.bg.lib-12.1.0.0-$B.ppc64.rpm RPM file that has not yet been installed, issue the following command:
$ rpm --qf="%{summary}\n" -qp vac.bg.lib-12.1.0.0-100701.ppc64.rpm
The resulting output depends on the specific file queried, but the following is a typical example:
IBM XL C/C++ for Blue Gene, V12.1 - C/C++ Compiler Libraries Package BGQ