Two commands can be used from scripts to solicit information about a
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 pkginfo(1), pkgparam(1),
and Chapter 4, Verifying and Transferring a Package for more information.