Product SiteDocumentation Site

5.2.2. Determining the capabilities a package provides

Packages require capabilities, and they can provide capabilities for other packages to require. To list the capabilities a package provides, use the --provides option. These capabilities can be arbitrary names, shared libraries (.so files), and the package name itself. The basic syntax is:
rpm –q query_options --provides packages
For example, the tcsh shell package provides two capabilities, at a particular version number, as shown following:
$ rpm -q --provides tcsh
csh = 6.12
tcsh = 6.12-2
Other packages provide a lot more, including shared libraries. The httpd package provides a long list of capabilities, as shown following:
$ rpm -q --provides httpd
httpd-mmn = 20020628
httpd = 2.0.40-8