Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (6561 KB)
pkgtrans(1)Name | Synopsis | Description | Options | Operands | DEVICE SPECIFIERS | Examples | Environment Variables | Exit Status | Attributes | See Also | Notes Name
Synopsis
pkgtrans [-inosg] [-k keystore] [-a alias] [-P passwd] device1 device2
[pkginst]...
Description
The pkgtrans utility translates an installable package from one format to another. It translates: Options
The options and arguments for this command are: Operands
DEVICE SPECIFIERS
Packaging tools, including pkgtrans, pkgadd(1M), and pkgchk(1M), have options for specifying a package location by specifying the device on which it resides. Listed below are the device types that a package can be stored to and retrieved from. Note that source and destination devices cannot be the same. ExamplesExample 1 Translating All Packages on the Floppy DiskThe following example translates all packages on the floppy drive /dev/diskette and places the translations on /tmp:
Example 2 Translating Packages on /tmpThe following example translates packages pkg1 and pkg2 on /tmp and places their translations (that is, a datastream) on the 9track1 output device:
Example 3 Translating Packages on /tmpThe following example translates pkg1 and pkg2 on /tmp and places them on the diskette in a datastream format:
Example 4 Creating a Signed PackageThe following example creates a signed package from pkg1 and pkg2, and reads the password from the $PASS environment variable:
Example 5 Translating a Package DatastreamThe following example translates a package datastream into a file system format package:
Environment VariablesThe MAXINST variable is set in the pkginfo(4) file and declares the maximum number of package instances. Exit StatusAttributesSee attributes(5) for descriptions of the following attributes:
The command-line syntax is Evolving. The digitally-signed stream package is Evolving. See Alsopkginfo(1), pkgmk(1), pkgparam(1), pkgproto(1), installf(1M), pkgadd(1M), pkgask(1M), pkgrm(1M), removef(1M), pkginfo(4), pkgmap(4), attributes(5), largefile(5) NotesBy default, pkgtrans does not translate any instance of a package if any instance of that package already exists on the destination device. Using the -n option creates a new instance if an instance of this package already exists. Using the -o option overwrites an instance of this package if it already exists. Neither of these options are useful if the destination device is a datastream. Package commands are largefile(5)-aware. They handle files larger than 2 GB in the same way they handle smaller files. In their current implementations, pkgadd(1M), pkgtrans and other package commands can process a datastream of up to 4 GB. Name | Synopsis | Description | Options | Operands | DEVICE SPECIFIERS | Examples | Environment Variables | Exit Status | Attributes | See Also | Notes |
|||||||||||