Basic SVR4 pkg commands

This is a "pkg" short survival guide for people used to other packaging systems like .rpm or .deb. Of course, see man pages for more detailed information.

HOWTO get...

list of packages installed
pkginfo
detailed info for a package
pkginfo -l PackageName
list of files belonging to a package
2>&1 /usr/sbin/pkgchk -v PackageName
(yes, this is the "check package" command in verbose mode!)
packaging information for an arbitrary given file
/usr/sbin/pkgchk -l -p ExactFileName
grep in the installed files name database.
grep SearchedExp /var/sadm/install/contents
This also returns packaging information in raw form You should also install the GNU "findutils" which can index all files present on the machines; be sensible, do not use find / :-)