A few commands that are good to know regarding Solaris package management.

* To add a package

# pkgadd -d PACKAGE

* To remove a package

# pkgrm PACKAGE

* To get info on a package

# pkginfo -x PACKAGE
# pkginfo -l PACKAGE

* To list all installed packages

# pkginfo

* To list the files that constitute the package

# pkgchk -d PACKAGE -l
or
# pkgchk -l PACKAGE

* To what package the file /usr/bin/ls belongs

# pkgchk -lp /usr/bin/ls
or
# grep FILE /var/sadm/install/contents

* To find out what files are in a package

# grep PACKAGE /var/sadm/install/contents

* To extract the files from the package to a directory

# pkgtrans PACKAGE /tmp