The pkg list command will tell you if a package is installed, frozen, obsolete or renamed under the column IFO.

I "i" = Package is installed
F "f" = If a package is frozen, you can only install or update to packages that match the frozen version.
O "r" = It indicates that package has been renamed.
O "o" = It indicates that package is obsolete. You cannot install a package that is marked obsolete.

reny@solaris11_2:~$ pkg list gedit
NAME (PUBLISHER)                                  VERSION          ...

Continue reading ...