PDA

View Full Version : dnf rollback last update



AloneInTheDark
29th December 2015, 04:47 PM
Hello,
after the last update (86 packages updated), the games in steam lag as hell! :Y

How can I rollback my last command "dnf update" ?

Thanks!

pindakoe
29th December 2015, 05:10 PM
My approach to this is:


> sudo dnf history list | head -6 # Show last 3 installs/updates

ID | Command line | Date a | Action | Altere
-------------------------------------------------------------------------------
160 | install bleachbit | 2015-12-29 11:38 | Install | 1
159 | update | 2015-12-29 10:10 | Update | 9
158 | update | 2015-12-27 10:08 | E, U | 5

> sudo dnf history undo 160 # Undo / roll-back install of bleachbit

AloneInTheDark
29th December 2015, 05:22 PM
I did the same:


[root@sara ~]# dnf history list | head -4
Last metadata expiration check performed 1:49:03 ago on Tue Dec 29 15:30:02 2015.
ID | Linea di comando | Data e | Azione | Modifi
-------------------------------------------------------------------------------
12 | update | 2015-12-29 08:30 | I, U | 86 <




[root@sara ~]# dnf history undo 12
Last metadata expiration check performed 1:50:23 ago on Tue Dec 29 15:30:02 2015.
Undoing transaction 12, from Tue Dec 29 08:30:47 2015
Aggiornato bind99-libs-9.9.7-7.P3.fc22.x86_64 (unknown)
Upgrade 9.9.8-1.P2.fc22.x86_64 @updates
...
...
Nessun pacchetto openvpn-0:2.3.8-1.fc22.x86_64 disponibile.
Errore: An operation cannot be undone


It means: No package openvpn-0:2.3.8-1.fc22.x86_64 available!!

dd_wizard
29th December 2015, 08:50 PM
Click the Fedora Project button at the top right of this screen. Go to Koji and download the RPM you need, then use "sudo dnf downgrade ./packagename.rpm" to downgrade openvpn. The old version you need has been replaced in the repos, which is making it impossible to rollback.

dd_wizard