此内容没有您所选择的语言版本。
8.2.3. Displaying Package Information
To display information about one or more packages (glob expressions are valid here as well), use the following command:
yum info package_name
yum info package_name
For example, to display information about the abrt package, type:
The
yum info package_name
command is similar to the rpm -q --info package_name
command, but provides as additional information the ID of the Yum repository the RPM package is found in (look for the From repo:
line in the output).
You can also query the Yum database for alternative and useful information about a package by using the following command:
yumdb info package_name
yumdb info package_name
This command provides additional information about a package, including the check sum of the package (and algorithm used to produce it, such as SHA-256), the command given on the command line that was invoked to install the package (if any), and the reason that the package is installed on the system (where
user
indicates it was installed by the user, and dep
means it was brought in as a dependency). For example, to display additional information about the yum package, type:
For more information on the
yumdb
command, see the yumdb(8) manual page.
Listing Files Contained in a Package
repoquery is a program for querying information from yum repositories similarly to rpm queries. You can query both package groups and individual packages. To list all files contained in a specific package, type:
repoquery --list package_name
repoquery --list package_name
Replace package_name with a name of the package you want to inspect. For more information on the
repoquery
command, see the repoquery manual page.
To find out which package provides a specific file, you can use the
yum
provides
command, described in Finding which package owns a file