Questo contenuto non è disponibile nella lingua selezionata.
8.2.2. Listing Packages
yum list
and related commands provide information about packages, package groups, and repositories.
*
(which expands to match any character multiple times) and ?
(which expands to match any one character).
Note
yum
command, otherwise the Bash shell will interpret these expressions as pathname expansions, and potentially pass all files in the current directory that match the globs to yum
. To make sure the glob expressions are passed to yum
as intended, either:
- escape the wildcard characters by preceding them with a backslash character
- double-quote or single-quote the entire glob expression.
-
yum list glob_expression
- Lists information on installed and available packages matching all glob expressions.
Example 8.3. Listing all ABRT add-ons and plug-ins using glob expressions
Packages with various ABRT add-ons and plug-ins either begin with “abrt-addon-”, or “abrt-plugin-”. To list these packages, type the following at a shell prompt:Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
yum list all
- Lists all installed and available packages.
-
yum list installed
- Lists all packages installed on your system. The rightmost column in the output lists the repository from which the package was retrieved.
Example 8.4. Listing installed packages using a double-quoted glob expression
To list all installed packages that begin with “krb” followed by exactly one character and a hyphen, type:Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
yum list available
- Lists all available packages in all enabled repositories.
Example 8.5. Listing available packages using a single glob expression with escaped wildcard characters
To list all available packages with names that contain “gstreamer” and then “plugin”, run the following command:Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
yum grouplist
- Lists all package groups.
-
yum repolist
- Lists the repository ID, name, and number of packages it provides for each enabled repository.