xpkg is a package management tool;

right now you can:
-install
-remove
-query
-upgrade (?)
packages. For the exact usage instructions of how to call xpkg, you may execute

  xpkg -h

To start going with xpkg, do:

$ mkdir -p /var/tmp/packages
$ export XPKG_PKGROOT=/var/tmp/packages
$ export XPKG_REGFILE=/var/tmp/xpkg.db
$ xpkg -c

now you may install/remove/.. some packages, like:

$ xpkg -i pstree.xpkg
$ xpkg -l

#------------------------------------------------------------------------------#

Requirements:
  -xar (libxar)
  -sqlite3
To build xpkg, you also need:
  -bison (2.0)
  -flex (2.5.4)
  -sed

#------------------------------------------------------------------------------#

To create a xpkg package, you need 'xpkgcreate' which comes with this
distribution. 1st create a catalog file that holds the information about
the package to create, then run xpkgcreate like

$ xpkgcreate sqlite3.catalog /

to create a sqlite3 package from an installed sqlite3. If you have the files
inside a destroot, you may specify that as 2nd parameter, like

$ xpkgcreate xar.catalog /var/tmp/xar-build/

The provided catalog examples are pretty self explanatory and hold all available
options. The only misleading part is the %package section; the order of
parameter is

  NAME:VERSION:REVISION:MAJOR:MINOR

The provides/requires items all have the schema of

  ITEMNAME:MAJOR:MINOR

For both NAME and ITEMNAME the allowed characters are [a-zA-Z0-9_] just.

