The same package can have different versions, be compatible with different architectures, or both. Each variation of a package is known as a package instance. A package instance is determined by combining the definitions of the PKG, ARCH, and VERSION parameters in the pkginfo file.
The pkgadd command assigns a package identifier to each package instance at installation time. The package identifier is the package abbreviation with a numerical suffix, for example SUNWadm.2. This identifier distinguishes a package instance from any other package, including instances of the same package.
A package abbreviation is a short name for a package that is defined by the PKG parameter in the pkginfo file. A package abbreviation must have these characteristics:
The abbreviation must consist of alphanumeric characters. The first character cannot be a number.
The abbreviation cannot exceed 32 characters in length.
The abbreviation cannot be one of the reserved abbreviations: install, new, or all.
The first four characters should be unique to your company. For example, packages built by Sun MicrosystemsTM all have “SUNW” as the first four characters of their package abbreviation.
An example of a package abbreviation entry in a pkginfo file is PKG=SUNWcadap.
The ARCH parameter in the pkginfo file identifies which architectures are associated with the package. The architecture name has a maximum length of 16 alphanumeric characters. If a package is associated with more than one architecture, specify the architectures in a comma-separated list.
This is an example of a package architecture specification in a pkginfo file:
ARCH=sparc |
The SUNW_ISA parameter in the pkginfo file identifies which instruction set architecture is associated with a Sun Microsystems package. The values are as follows:
sparcv9, for a package that contains 64–bit objects
sparc, for a package that contains 32–bit objects
For example, the SUNW_ISA value in a pkginfo file for a package containing 64–bit objects would be:
SUNW_ISA=sparcv9 |
If SUNW_ISA is not set, the default instruction set architecture of the package is set to the value of the ARCH parameter.
The VERSION parameter in the pkginfo file identifies the version of the package. The version has a maximum length of 256 ASCII characters, and cannot begin with a left parenthesis.
This is an example version of a specification in a pkginfo file:
VERSION=release 1.0 |