You can query RPM's database, which lists the packages installed on your system. For example, to display a simple description of an installed package, use a command like this one:
rpm -q package
In this command, package is the name of the package you want RPM to describe. In response, RPM prints the package name, version, and release number.
Rather than use the -q option and the package name, you can use any of the following alternative options:
You can also tailor the output of an RPM query, by specifying one or more of the following options:
For example, the command:
rpm -qid rhide
displays information about the rhide package, including a list of documentation files included in the package.