HP-UX Reference (11i v2 07/12) - 1M System Administration Commands N-Z (vol 4)

s
swpackage(1M) swpackage(1M)
0 The products specified in the product_specification_file were successfully packaged into the tar-
get depot/tape.
1 An error occurred during the swpackage session (for example, bad syntax in the
product_specification_file.) Review stderr or the log file for details.
DIAGNOSTICS
The
swpackage command writes to stdout, stderr, and to the logfile.
Standard Output
The swpackage command writes messages for significant events. These include:
a begin and end session message,
selection, analysis, packaging, and tape creation messages.
Standard Error
The swpackage command writes messages for all WARNING and ERROR conditions to stderr.
Logfile
The swpackage command logs detailed events to the log file /var/adm/sw/swpackage.log
. The
user can specify a different logfile by modifying the
logfile option.
EXAMPLES
Package the products defined in the PSF products into the default target depot:
swpackage -s products
Preview the same operation (do not create the target depot), and generate very verbose output:
swpackage -p -vv -s products
Package the products into the target depot no_files, insert references to the source files instead of copying
them into the depot:
swpackage -s products -x package_in_place=true @ no_files
Re-package a specific fileset:
swpackage -s products -x package_in_place=true product.fileset @ no_files
Re-package the entire contents of the depot /var/spool/sw
onto the tape at /dev/rmt/0m :
swpackage -s /var/spool/sw -x media_type=tape @ /dev/rmt/0m
FILES
/dev/rmt/0m
The default location of a source and target tape. (Note that SD can read both tar and
cpio tape
depots.)
$HOME/.swdefaults
Contains the user-specific default values for some or all SD options.
$HOME/.sw/sessions/
Contains session files automatically saved by the SD commands, or explicitly saved by the user.
/usr/lib/sw/sys.defaults
Contains the master list of current SD options with their default values.
/var/adm/sw/
The directory which contains all of the configurable and non-configurable data for SD. This directory
is also the default location of logfiles.
/var/adm/sw/defaults
Contains the active system-wide default values for some or all SD options.
/var/spool/sw/
The default location of a source and target software depot.
AUTHOR
swpackage was developed by the Hewlett-Packard Company and Mark H. Colburn (see pax(1)).
HP-UX 11i Version 2: December 2007 Update 10 Hewlett-Packard Company 509