DNF5-HISTORY(8) dnf5 DNF5-HISTORY(8)

dnf5-history - History Command

dnf5 history <subcommand> [options] [<transaction-spec>]

The history command in DNF5 allows the user to view what has happened in past transactions and offers several operations on these transactions, like undoing and redoing them. In order to use the transactions in these commands, it is assumed that they were committed while using the history_record configuration option.

For more information about <transaction-spec> see dnf5-specs(7), Patterns specification.

List info about recorded transactions in the system.
If no <transaction-spec> is specified it uses all transactions.
Print details about specific transactions.
If no <transaction-spec> is specified it uses the last transaction.
Revert all actions from the specified transaction.
Exactly one transaction must be specified by <transaction-spec>.
Repeat the specified transaction.
Automatically uses --ignore-extras and --ignore-installed.
Unlike the rest of history commands it overrides reasons for transaction packages that are already installed.
This command is useful to finish interrupted transactons.
Exactly one transaction must be specified by <transaction-spec>.
Undo all transactions performed after the specified transaction.
Exactly one transaction must be specified by <transaction-spec>.
Store the transaction into a directory.
If no <transaction-spec> is specified it uses the last transaction.

Reverse the order of transactions in the output.
Show only transactions containing packages with specified names.
This is a list option. Globs are supported.

Allow skipping packages actions that are not possible perform.

Don't consider extra packages pulled into the transaction as errors.
They will still be reported as warnings.
Don't consider mismatches between installed and stored transaction packages as errors.
They will still be reported as warnings.
Using this option can result in an empty transaction.
For install actions skip already installed packages.
For upgrade actions skip groups or environments that are not installed.
For remove actions skip not installed packages/groups/environments.

List all transactions, where the most recent transaction is printed first.
Show detailed info about the fourth transaction.
Show detailed info about the last transaction.
Show detailed info about the second to last transaction.
List transactions with id in 4 to 8 range.
Undo the last transaction.
Undo the fourth transaction ignoring extra packages pulled into the reverting transaction.

dnf5-specs(7), Patterns specification

See AUTHORS.md in dnf5 source distribution.

Contributors to the dnf5 project.

April 18, 2025