![Forrest logo](/images/logo.png)
dnf:tldr:9d756
The command dnf history
is used in Linux-based systems to display the history of package management operations performed using the dnf
command-line package manager.
When executed, this command presents a list of commands and transactions that have been executed by dnf
, along with the time, date, and summary of each transaction. It provides a chronological overview of package installation, upgrade, or removal operations.
The output includes a numerical identifier assigned to each transaction, allowing users to revert or undo specific operations if necessary. Additionally, it shows the user responsible for the actions, which can be helpful in multi-user environments. The dnf history
command also mentions any error messages encountered during transactions.
This command is particularly useful for system administrators to track changes made to the system, diagnose issues, or reproduce particular package management operations.