Extract files out of Solaris pkg file without installing

Solution 1:

Though this won't install the package, you can transfer them from a package file (aka a datastream package) to a spool location with the pkgtrans command:

pkgtrans filename.pkg /home/user/existing_temporary_package_prefix_dir

This will extract the package file system hierarchy as well as the pkginfo file and any pre/post install scripts into your directory.