Ok, as promised, here is version 0.2 of the Solaris Package Companion.  This 
new version is a complete rewrite from the original (even the command-line 
options have changed).  Give it a look and let me know what you think.  As 
always, I would very much appreciate any feedback you may have.  You can find a 
copy of the code at:

   http://mediacast.sun.com/details.jsp?id=1392

The big difference with this version is that rather than just doing some basic 
preprocessing of the clustertoc(4) file, it actually creates a repository of 
information on the system that is used for most of its processing.  The size of 
the repository is about 4-5M and it takes about 4-5 minutes to create (using a 
locally available Solaris distribution).  This allows the program to calculate 
complete lists of package lists (in clusters and metaclusters) as well as 
dependencies and reverse dependencies (thank you - Glenn Glazer for the '-z' 
idea) just once and report on them at will.  The reporting speed is definitely 
improved.

Once you have created the repository (done automatically on first invokation 
when the -r (repository) and -s (solaris distribution) arguments are provided, 
you can then begin to ask lots of questions:

General Options:

   -h, -?       [show help]
   -r           [repository location]
   -s           [solaris distribution location]
   -v           [show package details]

Processing Options:

   To display the list of packages contained in the specified cluster(s).
   -c <package cluster list>

   To display the metacluster(s) that contain the specified cluster(s).
   -C <package cluster list>

   To display the dependencies for the specified package(s).
   -d <package list>

   To display the dependencies for the specified cluster(s).
   -D <package cluster list>

   To display the packages contained in the specified metacluster(s).
   -m <meta cluster list>

   To display the clusters contained in the specified metacluster(s).
   -M <meta cluster list>

   To display the cluster that contains the specified package(s).
   -p <package list>

   To display the metacluster(s) that contain the specified package(s).
   -P <package list>

   To display the list of packages that depend on the specified package(s).
   -z <package list>


Standard disclaimers apply.  I have only done some basic testing on Nevada 
(SPARC) at this time.  Also, while error/exception handing is improved over the 
previous version, it could still use some work.  Again, please let me know what 
you think.

Thanks!
g
 
 
This message posted from opensolaris.org

Reply via email to