Two commands can be used from scripts
to solicit information about a package:
The pkginfo command returns information about software packages, such as the
instance identifier and package name.
The pkgparam command returns values
for requested environment variables.
See the pkginfo(1) man page, the pkgparam(1) man page, and Chapter 4, Verifying and Transferring a Package for more information.