Diff for /wikisrc/projects/project/pkgsrc_undo.mdwn between versions 1.1 and 1.2

version 1.1, 2014/08/30 06:06:57 version 1.2, 2014/08/30 06:10:37
Line 29  but there are a number of intermediate s Line 29  but there are a number of intermediate s
 infrastructure; after that adding the support to pkgin (or whatever  infrastructure; after that adding the support to pkgin (or whatever
 else) should be straightforward.  else) should be straightforward.
   
 1. The first thing we need is a machine-readable log somewhere of  The first thing we need is a machine-readable log somewhere of
 package installs and deinstalls.  package installs and deinstalls.
 Any time a package is installed or removed, pkg_install adds a record  Any time a package is installed or removed, pkg_install adds a record
 to this log.  to this log.
Line 59  Note that we can already almost do this  Line 59  Note that we can already almost do this 
 /var/backups/work/pkgs.current,v; but it only updates once a day and  /var/backups/work/pkgs.current,v; but it only updates once a day and
 the format has assorted drawbacks for automated use.  the format has assorted drawbacks for automated use.
   
 2. The next thing needed is a tool (maybe part of pkg_info, maybe not)  The next thing needed is a tool (maybe part of pkg_info, maybe not)
 to read this log and both (a) report the installed package state as of  to read this log and both (a) report the installed package state as of
 a particular point in time, and (b) print the differences between then  a particular point in time, and (b) print the differences between then
 and now, or between then and some other point in time.  and now, or between then and some other point in time.
Line 69  installed packages to an older state by  Line 69  installed packages to an older state by 
 older packages.  older packages.
 There are then two further things to do:  There are then two further things to do:
   
 3. Arrange a mechanism to keep the .tgz files for old packages on file.  Arrange a mechanism to keep the .tgz files for old packages on file.
   
 With packages one builds oneself, this can already be done by having  With packages one builds oneself, this can already be done by having
 them accumulate in /usr/pkgsrc/packages; however, that has certain  them accumulate in /usr/pkgsrc/packages; however, that has certain
Line 77  disadvantages, most notably that old pac Line 77  disadvantages, most notably that old pac
 hand.  hand.
 Also, for downloaded binary packages no comparable scheme exists yet.  Also, for downloaded binary packages no comparable scheme exists yet.
   
 4. Provide a way to compute the set of packages to alter, install, or  Provide a way to compute the set of packages to alter, install, or
 remove to switch to a different state.  remove to switch to a different state.
 This is somewhat different from, but very similar to, the update  This is somewhat different from, but very similar to, the update
 computations that tools like pkgin and pkg_rolling-replace do, so it  computations that tools like pkgin and pkg_rolling-replace do, so it

Removed from v.1.1  
changed lines
  Added in v.1.2


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb