DNF5-HISTORY(8) | dnf5 | DNF5-HISTORY(8) |
NAME¶
dnf5-history - History Command
SYNOPSIS¶
dnf5 history <subcommand> [options] [<transaction-spec>]
DESCRIPTION¶
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.
SUBCOMMANDS¶
- list
-
List info about recorded transactions in the system.
- info
-
Print details about specific transactions.
- undo
-
Revert all actions from the specified transaction.
- redo
-
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.
- rollback
-
Undo all transactions performed after the specified transaction.
- store
-
Store the transaction into a directory.
OPTIONS FOR LIST AND INFO¶
- --reverse
-
Reverse the order of transactions in the output.
OPTIONS FOR UNDO, ROLLBACK AND REDO¶
- --skip-unavailable
-
Allow skipping packages actions that are not possible perform.
OPTIONS FOR UNDO AND ROLLBACK¶
- --ignore-extras
-
Don't consider extra packages pulled into the transaction as errors. They will still be reported as warnings.
- --ignore-installed
-
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.
EXAMPLES¶
- dnf5 history list
-
List all transactions, where the most recent transaction is printed first.
- dnf5 history info 4
-
Show detailed info about the fourth transaction.
- dnf5 history info last
-
Show detailed info about the last transaction.
- dnf5 history info last-1
-
Show detailed info about the second to last transaction.
- dnf5 history list 4..8
-
List transactions with id in 4 to 8 range.
- dnf5 history undo last
-
Undo the last transaction.
- dnf5 history undo 4 --ignore-extras
-
Undo the fourth transaction ignoring extra packages pulled into the reverting transaction.
SEE ALSO¶
dnf5-specs(7), Patterns specification
AUTHOR¶
See AUTHORS.md in dnf5 source distribution.
COPYRIGHT¶
Contributors to the dnf5 project.
December 8, 2024 |