Chapter 7. Creating Packages for LRP

Creating packages for LRP is as simple as creating a tar file and gzipping it. The only necessities for LRP are some special files, located in /var/lib/lrpkg/:

Oxygen adds several files that enhance the LRP package format:

In most cases, the only file required for a standard package is pkgname.list — but the original LRP backup utility had problems if a file did not include or pkgname.version. Oxygen comes with an alternative backup utility (apkg) which has no such problems.

A basic Korn shell script might explain further:

if [ ! -f $PKGFILE ]; then
echo "Package file $PKGFILE missing!"
exit 1
tar cvf - $(cat $PKGFILE) | gzip -9 -c - > $LRPFILE && \
echo "Package created: $(basename $LRPFILE)"

A variant of this shell script would work under LRP; however, it is easier to place the actual files into the LRP system and use the standard utilities to back up the package when using LRP.

This assumes that the correct files (as listed above) have been created in /var/lib/lrpkg for the package.

To create an add-on package — that is, a package which contains programs to become part of the base LRP system — create a package which contains no files in /var/lib/lrpkg. The stock LRP package load system (lrpkg) may or may not handle an add-on package file correctly, but apkg (included with Oxygen) will handle this correctly and will give a warning, saying that this package will be absorbed into other packages.

Oxygen will also give a warning if any add-on packages are added during the boot process, with a message similar to this one: Installing packages - local etc usr log libx(abs!) - done

In this case, libx will be absorbed into other packages (presumably root.lrp, as part of /lib) if nothing is done.

Description files are an Oxygen extension to the package format; these are in pkg.desc files and have a specific format. An example:

# This is a description file <pkg>.desc
# These comments should be ignored; in fact, any line
# that does not match a known keyword should be ignored;
# but don't tell anyone I said that.... :-)
Name: upx
Version: 1.20
Release: 1
Packager: David Douthitt <>
Packaged: Wed Jul 18 09:40:25 CDT 2001
Keywords: compressor compress
Description: Use UPX to compress executables and kernels!
License: GPL2
Group: Utilities/Compression