Use the pkg info command to query the software package database on a system with zones installed.
The command can be used in the global zone to query the software package database in the global zone only. The command can be used in a non-global zone to query the software package database in the non-global zone only.