Logo address

/netlib/cmd/updatechecker

README

#
#	Tools to check consistency of your system
#
#	coded by Kenar (Kenji Arisawa)
#	E-mail: arisawa@aichi-u.ac.jp
#

Upinfo is a simple rc script that tells what 9gz file stands on what wrap.
The usage is: cd to the directory where 9gz files are placed and execute
upinfo.

Upchk tells the consistency of updated files.
To do it, upchck consults with /wrap/plan9/md5sum and
/wrap/plan9/remove.
The usage is: upchk [path ...]
The paths must be absolute path of files or directories.
If path ends with '/' then the path means a direcory,
and if not the path is a file

Uptrace trace the update of files consulting with /wrap/plan9/md5sum
and /wrap/plan9/remove.
The usage is: uptrace path ...
The paths must be absolute path of files.

usage examples are shown bellow:

#
#	upinfo
#
term% ls [0-9]*.9gz
03270425a.9gz
03270507.9gz
03270526.9gz
03270605.9gz
03270910.9gz
03271003.9gz
03271204.9gz
06070617.9gz
06170729.9gz
07291014.9gz
10140327.9gz
10141017.9gz
10141111.9gz
term% upinfo
03270425a.9gz  update 988250913 updating 985745432
03270507.9gz  update 989254626 updating 985745432
03270526.9gz  update 991073352 updating 985745432
03270605.9gz  update 991764560 updating 985745432
03270910.9gz  update 1000124880 updating 985745432
03271003.9gz  update 1002125437 updating 985745432
03271204.9gz  update 1007472771 updating 985745432
06070617.9gz  full update 961264382 updating 960391385
06170729.9gz  full update 964893367 updating 961264382
07291014.9gz  full update 971556349 updating 961264382
10140327.9gz  full update 985745432 updating 971556349
10141017.9gz  full update 971810713 updating 971556349
10141111.9gz  update 973992256 updating 971556349
	
#
#	upchk
#
term% upchk
/386/9pcdisk 985745432 # not equal
/386/9pcdisk.gz 985745432 # not equal
/386/bin/mkstate 985745432 # should be removed
/lib/namespace.httpd 985745432 # not equal
/lib/vgadb 989254626 # not equal
/mail/lib/rewrite 971556349 # not equal
/rc/bin/termrc 971556349 # not equal
....
	
#
#	uptrace
#
term% uptrace /sys/src/libsec/sha1.c
964893367 /sys/src/libsec/sha1.c f572bc4e543d71a70a085e7877ef8a67
971556349 /sys/src/libsec/sha1.c f572bc4e543d71a70a085e7877ef8a67
985745432 /sys/src/libsec/sha1.c # removed


Contents

      2194 README
      1872 upchk
       100 upinfo
       698 uptrace