swpackage.1m (2010 09)

s
swpackage(1M) swpackage(1M)
NAME
swpackage - package software products into a target depot or tape
SYNOPSIS
swpackage [-p][-v][
-V][-C session_file ][-d directory |device ][-f software_file ]
[
-s product_specification_file|directory ][
-S session_file ][
-x option=value ][-X option_file ]
[software_selections][
@ directory |device ]
Remarks
For a description of the Product Specification File (PSF) used as input to the
swpackage command,
see the swpackage (4) man page by typing
man 4 swpackage on the command line.
For an overview of all SD commands, see the sd(5) man page by typing
man5sdon the command
line.
For descriptions of all SD objects, attributes and data formats, see the sd(4) man page by typing
man
4sdon the command line.
DESCRIPTION
The
swpackage command is not distributed; it only operates on the local host. It packages software
products into:
a distribution directory (which can be accessed directly or copied onto a CD-ROM),
a distribution tape, such as DDS, nine-track or cartridge tapes.
NOTE:
swpackage treats everything following -d and @ as the path to the directory |device .If
swpackage -d string1:/string2 -s <psf>
or
swpackage -s <psf> @ string1:/string2
is entered, swpackage will not treat string1 as if it is a hostname as other Software Distributor
commands do. string1 is treated as part of the path.
A software product is organized into a three-level hierarchy: products , subproducts , and filesets . The
actual files that make up a product are packaged into filesets. Subproducts can be used to partition or
subset the filesets into logical groupings. (Subproducts are optional.) A product, subproduct, and fileset
also have attributes associated with them.
Both directory and tape distributions use the same format. The
swpackage command:
Organizes the software to be packaged into products, subproducts, and filesets,
Provides flexible mechanisms to package source files into filesets,
Modifies existing products in a distribution directory,
Copies products in a distribution directory to a distribution tape.
Both the
swpackage and swcopy commands create or modify a target depot. The differences between
these commands are:
The
swcopy command copies products from an existing depot to another depot. The swpackage
command creates products based on the user’s specification, and packages these products into a depot.
swpackage can be used to re-package software_selections from an existing distribution directory to a
distribution tape.
The
swcopy command can copy from a local or remote source to a set of local or remote targets. The
swpackage command packages source files from the local filesystem into a product, for insertion into
a local distribution directory or tape.
After creating a target depot,
swcopy registers that directory with the local swagentd so that it
can be found by swlist, swinstall, etc. With swpackage, the depot is not registered; the user
must explicitly invoke the swreg command.
Layout Version
By default, SD object and attribute syntax conforms to the layout_version 1.0 specification of the IEEE
POSIX 1387.2 Software Administration standard. SD commands still accept the keyword names associ-
ated with the older layout version 0.8, but you should use the older version only to create distributions
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (12 pages)