PING : THE SOFTWARE DEPOT COOKBOOK : CREATING A SOFTWARE DEPOT
Method A -- swpackage
Swpackage can create an unregistered depot. It's primarily used to package up software products for later installation by swinstall. (We'll look at that process later)
# swpackage -s /depot/psf_files/procmail.psf -d /home/bass/depot
Method B -- swcopy
If you have a bunch of 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
Registering the depot directory (optional)
Note that the newly-created depot directory is unregistered. That means we can't locate it with
% swlist -l depot
Which would list all the available depots on this system.
However, we can still list the depot's contents with swlist, if we tell him where the depot is:
% swlist -s /home/bass/depot
If you want to register the depot, use the swreg command:
# swreg -l depot /home/bass/depot
Copying Something Into The Software Depot 