pkgtrans(C) performs the following package translations:
pkgtrans -s device1 device2 [pkg1[,pkg2[ . . . ]]]where -s is the option to translate to datastream, device1 is the name of the device or directory where the package currently resides, device2 is the name of the device onto which the translated package will be placed, and [pkg1[pkg2 . . . ]] is one or more package names. If no package names are given, a menu of all packages residing in device1 is displayed and the user asked for a selection.
Creating a datastream package requires two steps:
Use the default device (the installation spool directory) or name a directory into which the package should be placed. pkgmk(C) creates a package in a fixed directory format. Specify the capacity of the device where the datastream will be placed as an argument to the -l option.
This command translates the fixed directory format to the datastream format and places the datastream on the specified medium.
For example, the two steps shown below create a datastream package:
This formats a package into a fixed directory structure and places it in a directory named spooldir. Each part of the package requires no more than 1400 blocks.
This translates the fixed directory format of package1 residing in the directory spooldir into a datastream format, and places the datastream package on the medium in a device named 9track.
This is similar to number 2 above, except that it places the datastream package on the medium in a device named diskette. pkgtrans(C) prompts for additional volumes if the package requires more than one diskette.
When an instance of the package being translated to fixed directory format already exists on device2, pkgtrans(C) does not perform the translation. You can use the -o option to tell pkgtrans to overwrite any existing instances on the destination device and the -n option to tell it to create a new instance if one already exists. Note that the above does not apply when device2 contains a datastream format.