1.2.3. Querying Packages
The rpm allows you to query packages that are available on the system. This way, you can easily explore the basic structure of the packages.
Some of the useful commands for querying the packages include:
-
rpm -qd package
The rpm -qd package
command is used to get a list of included documentation files, which are defined by the %doc
directive.
-
rpm -qc package
The rpm -qc package
command is used to get a list of included configuration files, which are defined by the %config
directive.
-
rpm -q --scripts package
The rpm -q --scripts package
command is used to get a list of scripts, which are defined by the %pre
, %post
, %preun
, and %postun
directives.