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

Re: What do you wish for in an package manager?



On Sun, Dec 24, 2000 at 04:10:43PM +0100, Federico Di Gregorio wrote:
> Scavenging the mail folder uncovered Ben Collins's letter:
> > On Sun, Dec 24, 2000 at 03:50:41PM +0100, Federico Di Gregorio wrote:
> > > Scavenging the mail folder uncovered Wichert Akkerman's letter:
> > > > Previously John Hasler wrote:
> > > > > Undo.
> > > > 
> > > > dpkg will support rollback at some point, when reiserfs supports
> > > > transactions. 
> > > 
> > > that's completely crazy. will you force anybody who wants rollback to
> > > use raiserfs? generic applications like dpkg should be indipendent of
> > > the fs used (as long as the fs provides an adeguate set of features, 
> > > surely i don't ask for a full-working dpkf on vfat...)
> > 
> > Heh. Do you have any idea how hard it is to implement rollback? Without
> > package support, it is almost impossible without a system layer handling
> > it (snapshot of preinstall state, so you can revert completely back to it).
> 
> * dpkg-repack the package (using the installed configuarion files [the only
>   the user can modify/replace])
> * copy .deb file to /var/cache/dpkg/rollback/
> * install new package
> * dpkg --rollback remove current package (doea a downgrade) and replaces 
>   all the files from the repackaged package
> * dpkg --clean removes all the repackaged packages.

You are missing the fact that the old package does not understand that
the new package possibly setup some things (configuration settings,
diversions, symlinks, removal of cruft, alternatives) that it cannot
recover from. You are missing the fact that it is not as simple as
replacing files.

-- 
 -----------=======-=-======-=========-----------=====------------=-=------
/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
`  bcollins@debian.org  --  bcollins@openldap.org  --  bcollins@linux.com  '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'



Reply to: