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

Re: Always run dpkg --dry-run -i before running dpkg -i!



[William Ballard]
> I like my transactions to have ACID consistency and dpkg does not
> have this by design - apt does.

"You keep using that word.  I do no think it means what you think it
means."  Let's see how ACID-compliant apt install runs are....

  Atomicity - no.  Your install does not, for example, get rolled back
  if a random postinst script fails.  Not even that package gets rolled
  back.

  Consistency - this seems to be what you were talking about.

  Isolation - nope.  If you upgrade, say, svn and libsvn0 together,
  there's a window where users can find themselves using the new svn
  with the old libsvn0, or vice versa.

  Durability - I have no idea if dpkg or apt run 'sync' or 'fsync' at
  useful points (like at the end of the install).  Kind of a moot
  point, though, when you don't have atomicity.

So, you're about 1/4 right.  Or, being charitable, if you really meant
"*only* the Consistency part of ACID" when you said "ACID consistency",
then you were right but quite misleading.

Peter

Attachment: signature.asc
Description: Digital signature


Reply to: