yum roll back option?

Nicolas Mailhot nicolas.mailhot at laposte.net
Mon Jan 15 21:20:47 UTC 2007


Le lundi 15 janvier 2007 à 11:51 -0900, Jeff Spaleta a écrit :
> On 1/15/07, n0dalus <n0dalus+redhat at gmail.com> wrote:
> > RPM could provide a mechanism for storing various types of data and
> > macros for common changes (eg changes of file attributes), so that
> > when the install scripts run, any changes they make can be stored
> > somewhere by rpm.
> 
> do you account for multiple packages, making changes to the same file?
>  So far I see  assumptions being made about simple one-to-one mapping
> of packages to file changes.

…

> Simple
> diffs of file state at package install time are not necessarily
> adequate,

You're assuming all changed files are text files here

>  unless you can garuntee that scriplets from multiple
> packages do not re-edit files. Can we be so sure of that?

The simple stupid robust answer is:
— don't assume anything, snapshot all changed files
— only allow full-transaction rollbacks
– when a rollback is requested, also rollback all the packages that
touched the snapshoted files since

You can get by without all this most of the times, but then Murphy says
the day you need the rollback you'll have one of the corner cases
shotcuts don't handle

-- 
Nicolas Mailhot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Ceci est une partie de message num?riquement sign?e
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20070115/1c530262/attachment.sig>


More information about the fedora-devel-list mailing list