PKGTRANS(1) | User Commands | PKGTRANS(1) |
pkgtrans - translate package format
pkgtrans [-inos] device1 device2 [pkginst]...
The pkgtrans utility translates an installable package from one format to another. It translates:
The options and arguments for this command are:
-i
-n
-o
-s
device1
device2
pkginst
The asterisk character (*) is a special character to some shells and may need to be escaped. In the C-Shell, the * must be surrounded by single quotes (') or preceded by a backslash (\).
Packaging tools, including pkgtrans, pkgadd(8), and pkgchk(8), 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.
device
device alias
directory
Example 1 Translating All Packages on the Floppy Disk
The following example translates all packages on the floppy drive /dev/diskette and places the translations on /tmp:
example% pkgtrans /dev/diskette /tmp all
Example 2 Translating Packages on /tmp
The following example translates packages pkg1 and pkg2 on /tmp and places their translations (that is, a datastream) on the 9track1 output device:
example% pkgtrans /tmp 9track1 pkg1 pkg2
Example 3 Translating Packages on /tmp
The following example translates pkg1 and pkg2 on /tmp and places them on the diskette in a datastream format:
example% pkgtrans -s /tmp /dev/diskette pkg1 pkg2
Example 4 Translating a Package Datastream
The following example translates a package datastream into a file system format package:
example% pkgtrans /tmp/pkg1.pkg ~/tmp pkg1
The MAXINST variable is set in the pkginfo(5) file and declares the maximum number of package instances.
0
>0
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | See below. |
The command-line syntax is Evolving.
pkginfo(1), pkgmk(1), pkgparam(1), pkgproto(1), pkginfo(5), pkgmap(5), attributes(7), largefile(7), installf(8), pkgadd(8), pkgask(8), pkgrm(8), removef(8)
Application Packaging Developer's Guide
By 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(7)-aware. They handle files larger than 2 GB in the same way they handle smaller files. In their current implementations, pkgadd(8), pkgtrans and other package commands can process a datastream of up to 4 GB.
March 2, 2017 | OmniOS |