Software >> OS >> Unix >> Solaris >> 11 >>  Examples on how to use the pkg command

Example 1 - to check whether a package is installed in the non active Boot Environment

# beadm list

note the boot env name to be checked e.g. solaris1

# mkdir /altroot

# beadm mount solaris1 /altroot

# pkg -R /altroot verify -v pkgname