rpm/up2date transactional rollbacks

WINDOW, Michael Michael.WINDOW at baesystems.com
Tue Dec 4 22:58:59 UTC 2007


Hello,

Over the past week I've been trying to utilize the rollback features of
either rpm or up2date.

Firstly with rpm v 4.3.3 I attempted the following:

Install the rpm
prompt> rpm -i somepackage.rpm

Rollback
prompt> rpm -Uvh --rollback '1 hour ago'

Check to see if the installed rpm is gone
prompt> rpm -q somepackage 

and it outputs that the package is still installed.

I had set in /etc/rpm/macros %_repackage_all_erasures 1 and a suitable
previous time for %_unsafe_rollbacks and it is obviously not working.

Does this feature actually work? (I found no actual documentation
anywhere) Has anyone had any successes with this?

Secondly with up2date from what I've read the --undo and
--list-rollbacks options have been removed in the later versions without
stating any reason why they have been removed/ if they are due back
anytime soon. I've attempted to use this on a version before the feature
was removed, v4.4.50 I think and any installed rpm via up2date -i
somepackage would not be rolled back using the --undo option.
My question here is has anyone made this work (using --undo) with any
previous versions or did this never work properly in the first place?

Thanks

Michael Window
"Warning:
The information contained in this email and any attached files is
confidential to BAE Systems Australia. If you are not the intended
recipient, any use, disclosure or copying of this email or any
attachments is expressly prohibited.  If you have received this email
in error, please notify us immediately. VIRUS: Every care has been
taken to ensure this email and its attachments are virus free,
however, any loss or damage incurred in using this email is not the
sender's responsibility.  It is your responsibility to ensure virus
checks are completed before installing any data sent in this email to
your computer."




More information about the redhat-list mailing list