Re: yum roll back option?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le lundi 15 janvier 2007 à 11:51 -0900, Jeff Spaleta a écrit :
> On 1/15/07, n0dalus <n0dalus+redhat@xxxxxxxxx> 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

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux