To see your current package depot setting:

oi@openindiana:~$ pkg publisher
PUBLISHER                             TYPE     STATUS   URI
openindiana.org          (preferred)  origin   online   http://pkg.openindiana.org/dev/
opensolaris.org                       origin   online   http://pkg.openindiana.org/legacy/
oi@openindiana:~$

Lists all packages in the consolidation 'osnet':

pkg search -r '<set:org.opensolaris.consolidation:osnet>'

Lists all installed incorporations

pkg search -l -r '<:depend:incorporate:>'

Search for all the users delivered by packages

pkg search -r :user::