Packaging Applications in SD-UX Format Using Software Package Builder
packaging applications in software distributor format using software package builder
section III: introduction to software management commands
manage the software package (3)
create the software package (3a)
To create a software package the swpackage command reads the PSF file, analyzes the software
elements and their attributes, and packages the source files and attributes. Once created, it inserts
the software package into a depot.
steps
To create the JUnit software package and specify the depot directory, enter:
swpackage –s junit_open_source.psf @ /var/tmp/junit3.8.1
list the software package contents (3b)
Software inventory is performed using the swlist command. You can create customizable listings
of the software products installed on your local host or in depots. You can change the behavior of
this command by specifying additional command-line options. Refer to the swlist(1m) manpage
for details.
Features of the swlist command include:
• Specify the level (bundles, products, subproducts, filesets or files) to show in your list.
• Specify a set of software attributes to display for each level. These items can include the
product’s name, revision, etc.
• Create a list of products, subproducts or filesets to use as input to the swinstall or
swremove commands.
• Display a table of contents for a software source.
• Display selected software attributes for each level.
• Show the product structure of software selections.
steps
To check the contents of your software package and create a list of details consisting of products,
filesets, and their associated software specifications, enter:
swlist –asoftware_spec –lproduct –lfileset –s /var/tmp/junit3.8.1
register the depot (3c)
When a new depot is created by swpackage, it is not automatically registered with the local host.
Registering a depot makes it generally available as a source for swinstall and swcopy tasks.
Registration also provides a type of public recognition for the packaged depot. Refer to the
swreg(1m) manpage for more details on this command.
20