Sun Directory Server Enterprise Edition 7.0 Troubleshooting Guide

Using the pkgapp Script on Solaris

You can download this script from This script retrieves the correct version of the binary of the running process or from the core and works with 32–bit and 64–bit libraries.

The Solaris pkgapp script packages an executable and all of its shared libraries into one compressed tar file. You provide the process ID of the application and, optionally, the name of the core file to be opened.

The files are stripped of their directory paths, and are stored under a relative directory named /app with their names only, allowing them to be unpacked in one directory. On Solaris 9 and Solaris 10, the list of files output by the pkgapp script is derived from the core file rather than the process image, if it is specified. You must still provide the process ID of the running application to assist in path resolution.

As superuser, run the pkgapp script as follows:

# pkgapp server-pid core-file

Note –

You can also run the pkgapp script without a core file. This reduces the size of the pkgapp output. You need to later set the variable to the correct location of the core file.