Software Distributor Administration Guide for HP-UX 11i

Managing Software Depots
Additional Depot Management Tasks and Examples
Chapter 4156
Creating a Tape Depot for Distribution
This example shows you how to create a tape depot as a single file that
can be distributed via ftp or the web. This example uses the five patches
from the previous example (which are formatted as tape depots) and uses
an existing depot at /depots/mypatches. The swlist command shows
the depot contents (see “Listing the Contents of a Depot (swlist -d)” on
page 159).
swpackage -x media_type=tape -s /depots/mypatches \
@ /tmp/mypatches.depot
swlist -d -s /tmp/mypatches.depot
To create a tape depot from myproduct.psf, a valid product specification
file:
swpackage -x media_type=tape -s myproduct.psf \
@ /tmp/myproduct.depot
swlist -d -s /tmp/myproduct.depot
See Chapter 10, “Creating Software Packages,” on page 301 for more
information about swpackage.
Setting Depot Attributes
When you create a depot, you may want to set the title and description
attributes to help identify the depot and what it contains.
At the top of the product specification file (psf) for the depot, place the
lines similar to the following:
distribution
title Optional Development Tools
description "Text processing and programming tools
\generally useful for source code development"
Then package and register the depot:
swpackage -s mydepot.psf @ /depots/mydepot
swreg -l depot @ /depots/mydepot
To see the title and description of all depots on a system:
swlist -v -a title -a description -l depot