Software Distributor: Cookbook
Creating a Software Depot
swpackage
The swpackage can create an unregistered depot. It's primarily used to package software
products for later installation by swinstall.
# swpackage -s /depot/psf_files/procmail.psf \-d /home/bass/depot
The -s specifies the source, procmail.psf, a Product Specification File, which tells swpackage
how to package up the product.
The -d specifies the destination, /home/bass/depot, a depot subdirectory. The destination
does not have to exist; swpackage will create it for you. The destination could also have been
a file or tape. (See "“Creating Depot Files or Tapes” (page 6)" for details.)
swcopy
If you have a several products or filesets that you want to group together into a new or existing
depot (a collection of patches, for example), use swcopy The destination depot does not have to
exist; swcopy will create it for you if it doesn't. For example:
# swcopy -s /home/bass/depot procmail @ /tmp/depot
The -s specifies the source depot, /home/bass/depot. It could be a depot file, directory, tape
device or mounted CD.
The procmail is the name of the product or fileset to copy.
The @ specifies the destination depot (rather than the -d used by swpackage, /tmp/depot.
Registering the Depot Directory - Optional
Note that the newly-created depot directory is unregistered. That means you can't locate it with:
% swlist -l depot
Which lists all the available depots on this system.
However, you can still list the depot's contents with swlist, if you specify the location of the
depot:
% swlist -s /home/bass/depot
If you want to register the depot, use the swreg command:
# swreg -l depot /home/bass/depot
Copying into a Software Depot Using swcopy
Copying is simple as previously explained. The basic form of the swcopy command is:
# swcopy -s SOURCE_DEPOT SELECTION @ DESTINATION_DEPOT
The SOURCE_DEPOT could be a depot file, directory, tape device or mounted CD. It has to be a
fully-rooted path; that is it must start with a /.
SELECTION is the name of the software selection (the product or fileset) to copy. To copy them
all, use \* as the selection.
The DESTINATION_DEPOT also has to be fully-rooted.
How do you know what the software selection's name is? For patches, it's usually the name of
the path. Use the swlist command to find out, like so:
% swlist -s <depot>
Creating a Software Depot 5