Software Distributor Administration Guide for HP-UX 11i

Creating Software Packages
Packaging Tasks and Examples
Chapter 10356
Packaging Tasks and Examples
To package the software products defined in the PSF product.psf into
the distribution depot /var/spool/sw and preview the task at the
verbose level before actually performing it, type:
swpackage -p -v -s product.psf @ /var/spool/sw
Registering Depots Created by swpackage
When a new depot is created by swpackage, it is not automatically
registered with the local hosts swagentd daemon.
To verify that the depot is registered, type:
swlist -l depot @ MyDepot
To register the depot, you must execute the swreg command:
swreg -l depot depot_to_register
Registering a depot makes it generally available as a source for swinstall
and swcopy tasks.
Registration provides a type of public recognition for the packaged depot:
You can see the depot in the swinstall/swcopy GUI and see it in
swlist depot-level listings.
You can read products from the depot (for example, to install).
For more information about registering depots, see “Registering and
Unregistering Depots (swreg)” on page 151.
NOTE If the only use of a depot created with swpackage is local access by the
packaging user, depot registration is not required.