How can we rollback to a previous update in Fedora 33

Hi there,

I am running Fedora 33 on a Lenovo thinkpad laptop.

Is there an easy way to rollback to a previous update ?

‘dnf history’ is what you are looking for I guess.

dnf history list

will show you the history and following that you can either undo or rollback (to) the desired ID.

From man dnf:

dnf history rollback ‘transaction-spec’ | ‘package-file-spec’
Undo all transactions performed after the specified transaction.
Uses the last transaction (with the highest ID) if more than one
transaction for given is found. If it is
not possible to undo some transactions due to the current state
of RPMDB, it will not undo any transaction.

dnf history undo ‘transaction-spec’ | ‘package-file-spec’
Perform the opposite operation to all operations performed in
the specified transaction. Uses the last transaction (with the
highest ID) if more than one transaction for given
<pack
age-file-spec> is found. If it is not possible to undo some
perations due to the current state of RPMDB, it will not undo the
transaction.

dnf history rollback might even work to downgrade i.e. from F33 to F32. Testet once, but no warranty on that.

2 Likes

Thanks, very much.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.