pkgadd -d foo-1.0
Use the -R option of the pkgadd command to install the Solaris packages in a non-default location
-R root_path Define the full path name of a directory to use as the root_path. All files, including package system information files, are relo- cated to a directory tree starting in the specified root_path. The root_path may be specified when installing to a client from a server (for example, /export/root/client1).
documented on: Fri 08-13-99