|
|
The same software package can differ by version, architecture, or both. Each variation is known as a ``package instance''. pkgadd(1M)
The only way to install another instance of the same package is to install the new version on top of the old version. The new instance overwrites any files installed by the old instance, installs new files, and may (if the packaging scripts are written to do so) remove files from the system. A pkginfo -l of the package name displays the information from the new package instances pkginfo file. Removing the package removes all files that had been installed by any instance of the package added to the system.
Three parameters defined in the pkginfo(4) file combine to identify each instance uniquely. You should not assign identical values for all three parameters for two instances of the same package installed in the same target environment. These parameters are:
For example, you might identify two identical versions of a package that run on different hardware as:
Instance 1 | Instance 2 |
---|---|
PKG="abbr" | PKG="abbr" |
VERSION="release 1" | VERSION="release 1" |
ARCH="MX300I" | ARCH="i386" |
Instance 1 | Instance 2 |
---|---|
PKG="abbr" | PKG="abbr" |
VERSION="release 1" | VERSION="release 2" |
ARCH="i386" | ARCH="i386" |
Use the PKGINST system parameter to reference your package in your installation scripts.