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

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



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.

or am i missing something?
federico

-- 
Federico Di Gregorio
MIXAD LIVE Chief of Research & Technology              fog@mixadlive.com
Debian GNU/Linux Developer & Italian Press Contact        fog@debian.org
                             Best friends are often failed lovers. -- Me



Reply to: