pkgmk(1M) pkgmk(1M)
NAME
pkgmk - produce an installable package
SYNOPSIS
pkgmk [-ocO] [-d device] [-r rootpath] [-b basedir] [-l limit]
[-a arch] [-v version] [-p pstamp] [-f prototype]
[variable=value ...] [pkginst]
DESCRIPTION
pkgmk produces an installable package. The package is stored in file
system format [see pkgtrans(1M)].
The command uses the package prototype file as input and creates a
pkgmap file. The contents for each entry in the prototype file are
copied to the appropriate output location. Information concerning the
contents (checksum, file size, modification date) is computed and
stored in the pkgmap file, along with attribute information specified
in the prototype file.
Pathnames in a call to pkgmk must be in absolute form.
OPTIONS
-o Overwrites the same instance, package instance will be overwrit-
ten if it already exists.
-c The package will be compressed by the compress(1) command. Only
information files are not compressed.
-O Optimizes the compression via -c: the files are compressed while
they are copied to the output medium. Otherwise compressing is a
separate step. -O is not possible for split packages.
-d Creates the package on device. device can be a full path name to
a directory or the identifier for tape (for example /var/tmp). It
can also be the device alias. The default device is the installa-
tion spool directory.
-r Ignores destination paths in the prototype file. Instead, uses
the indicated rootpath with the source path name appended to
locate objects on the source machine.
-b Prepends the indicated basedir to locate relocatable objects on
the source machine.
-l Specifies the maximum size in 512 byte blocks of the output
device as limit. By default, if the output file is a directory or
a mountable device, pkgmk will employ the df command to dynami-
cally calculate the amount of available space on the output
device. Useful in conjunction with pkgtrans to create package
with datastream format.
-a Overrides the value of ARCH in the pkginfo file with arch.
Page 1 Reliant UNIX 5.44 Printed 11/98
pkgmk(1M) pkgmk(1M)
-v Overrides the value of VERSION in the pkginfo file with version.
-p Overrides the value of PSTAMP in the pkginfo file with pstamp.
-f Uses the file prototype as input to the command. The default
prototype file name is [Pp]rototype.
variable=value
Places the indicated variable in the packaging environment. See
prototype(4) for definitions of packaging variables.
pkginst
Specifies the package by its instance. An instance can be the
package abbreviation or a specific instance (for example,
inst.1).
NOTES
Architecture information is provided on the command line with the -a
option or in the pkginfo file. If no architecture information is sup-
plied at all, the output of uname -m will be used.
Version information is provided on the command line with the -v option
or in the pkginfo file. If no version information is supplied, a
default based on the current date will be provided.
Command line definitions for both architecture and version override
the pkginfo definitions.
SEE ALSO
pkgparam(1M), pkgproto(1M), pkgtrans(1M).
Page 2 Reliant UNIX 5.44 Printed 11/98