Using the DNF time machine
DNF has a time machine built into it! This isn’t just a way to look back through the cosmos; it actually allows you to see the history of what was installed and also allows you to roll back a single change, or all changes up to a point.
Getting ready
To do this, you will need a test system, running Oracle Linux 8, with access to an RPM repo.
How to do it…
When DNF installs software, it keeps a history of all the actions performed. This includes upgrades to the software, installed software, and removal of the software. The dnf history
command shows this history:
Figure 5.3 – The dnf history command
There are five columns – ID
, Command line
, Date and time
, Action(s)
, and Altered
:
ID
: This is the identifier for the history, and is used in commands that will show info, roll back, undo, or store a transactionCommand line
: This is the option passed to DNF when the command was run...