Another way to create a package image that can be installed or distributed to other hosts is by use of the pkgtrans(1) command.
If the -n option is used, pkgcopy attempts a network connection between the target and source hosts using the requested networking protocol (-n tcp for TCP/IP and -n spx for IPX/SPX). If a connection cannot be made using the requested protocol on the system running pkgcopy, as defined in the /etc/netconfig file (see netconfig(4bnu)), pkgcopy exits.
If the -n option is not used, pkgcopy attempts a network connection between the target and source hosts using the first available protocol (TCP/IP or IPX/SPX). If a connection cannot be made using this protocol on the system running pkgcopy, as defined in the /etc/netconfig file (see netconfig(4bnu)), pkgcopy exits.
host:[device] or [host]:device
where:
If the host IP address is given then TCP/IP networking must be used. This can be accomplished by either including -n tcp on the command line or by having only TCP/IP and not IPX/SPX available on your system.
If the source directory is a directory containing package(s), then you must specify the package option. If the source device is a package datastream, then you do not need to specify the package option. If the package option is omitted, you are prompted for which set(s) or package(s) you want to copy from that data stream.
This feature works the same as in pkgtrans(1), which is the underlying mechanism used by pkgcopy for copying software.
Success
Copy the terminf package from the /var/spool/dist directory on the myhost system to the /var/spool/dist directory on the local host: