(*).    Package management


(*).1.    Package information

All administration information about packages can be found in the directory
/var/adm/. Here you can find the following directories and files:

  /var/adm/flists/{packagename}      A list of the files of this package
  /var/adm/packages/{packagename}    Common package information
  /var/adm/cksums/{packagename}      Checksums - created with 'cksum'
  /var/adm/md5sums/{packagename}     Checksums - created with 'md5sum'


(*).2.    Installing and removing packages

To install or remove packages just use the commands 'pkg-install' and
'pkg-remove'.  After installing or removing packages you should always run
the '/usr/sbin/cron.run' script to update some system files.
[FIXME! Is this still current?]


(*).3.    Packages in the RPM format

If you want to use RPM or SRPM packages you should use the programs
'rpm2cpio' and 'cpio -i -d' to extract it somewhere. Then install
the stuff manually (to '/opt/' or '/usr/local/').

The 'rpm' program from RedHat is included in ROCK Linux to give you the
possibility to convert RPM packages and/or extract them somewhere.  Please
don't use rpm directly to install packages.


(*).4.    Finding modified files

To find modified or new files in the directories 'bin boot etc lib sbin usr
var' just execute the 'pkg-diff' programm. It doesn't make sense to search in
the other directories since no ROCK Linux package installs files in them.

If you want to create an "overlay" - a tarball with all changed files which
you can install on another, identical machine - you can do it like this:

cd / 
pkg-diff / > tmp/big-file-list.txt 
vi tmp/big-file-list.txt  (strip the file for non-interesting files.) 
tar czf tmp/big-archive.tar.gz -T tmp/big-file-list.txt




