When working with large, multi-product depots such as the Internet Express collection, it is often desirable to extract a single product or small group of products to create a small depot. The technique is quite simple. Here are two examples:
# swcopy -x enforce_dependencies=false -s /var/tmp/iExpress-1of3 ProFTPD @ /tmp/prod1
# swcopy -x enforce_dependencies=false -s /var/tmp/iExpress-1of3 Sudo Tripwire @ /tmp/prod2
In each case, the source (-s) is the Internet Express CD or a copy on disk. The name of the product (or products) is given and the @ directive points to a directory where the new depot is to be created. If the directory does not exist, it will be created. If it already contains a depot setup, the new products(s) will be added. You can check the result with:
# swlist -l product -s /tmp/prod1
# Initializing…
# Contacting target “atl1″…
#
# Target: atl1:/tmp/prod3
#
ProFTPD A.10.00-1.3.1 FTP Server
Wireshark A.10.00-0.99.6 Protocol Analyzer
…which shows the products in the depot directory. swcopy automatically registers the depot so it can be used by any HP-UX server on the network. To copy the depot to another system, just use tar to save the depot directory and untar it at the destination.
– See more at: http://serviceitdirect.com/blog/extracting-products-large-depot#sthash.CuFF5O1s.dpuf
Tags: HP-UX