Misc

Mixed stuff that does not fit the other categories


Zypper Rollback (undo updates on Linux):

Undo updates based on the log in /var/log/zypp/history.


Usage:
python undo_updates.py <file_to_undo> <file_zypper_history> [-i <include_file> | -e <exclude_file>] [doIt]
With include_file, only packages mentioned there are rolled back.
Only with parameter 'doIt' the actions are generated.
All files must have zypper history format, looking like that:
2013-05-10 18:14:12|install|xorg-x11-server|7.6_1.13.2-1.5.1|x86_64||repo-update|ddb4d57...4d|

So cut out the part from the history file you like to undo, and pass it as <file_to_undo>. You can pass an optional file what to include (e.g. only libX11,…) or what to exclude (e.g. kernel-default). All files must have the zypper history format (so create them per copy past and/or grep from the history file).

With the final argument ‘doIt’ it will output the zypper command to use for you. Without it it will output a list with format ‘package_name, go_back_to_version, [list newer versions installed since go_back_to_version]’ to better check that what is happening is what you want.

Note: before starting the downgrade process create a copy of your zypper history and use that copy as <file_zypper_history>.

Zypper Rollback (undo updates on Linux)
Zypper Rollback (undo updates on Linux)
undo_updates.py.zip
Version: 0.1
Date: 2013/06/25
1.7 KiB

Details...