此内容没有您所选择的语言版本。
8.3.2. Examining Transactions
To display the summary of a single transaction, as
root
, use the yum history summary
command in the following form:
yum history summary id
yum history summary id
To examine a particular transaction or transactions in more detail, run the following command as
root
:
yum history info id
yum history info id
The id argument is optional and when you omit it,
yum
automatically uses the last transaction. Note that when specifying more than one transaction, you can also use a range:
yum history info start_id..end_id
yum history info start_id..end_id
The following is sample output for two transactions, each installing one new package:
You can also view additional information, such as what configuration options were used at the time of the transaction, or from what repository and why were certain packages installed. To determine what additional information is available for a certain transaction, type the following at a shell prompt as
root
:
yum history addon-info id
yum history addon-info id
Similarly to
yum history info
, when no id is provided, yum
automatically uses the latest transaction. Another way to see the latest transaction is to use the last
keyword:
yum history addon-info last
yum history addon-info last
For instance, for the first transaction in the previous example, the
yum history addon-info
command would provide the following output:
In this example, three types of information are available:
config-main
— global Yum options that were in use during the transaction. See Section 8.4.1, “Setting [main] Options” for information on how to change global options.config-repos
— options for individual Yum repositories. See Section 8.4.2, “Setting [repository] Options” for information on how to change options for individual repositories.saved_tx
— the data that can be used by theyum load-transaction
command in order to repeat the transaction on another machine (see below).
To display selected type of additional information, run the following command as
root
:
yum history addon-info id information
yum history addon-info id information