• Install Solaris Package in Alternate Base Directory

    Unless you specify a different administrative file, the pkgadd command reads “/var/sadm/install/admin/default”, which specifies the base directory as “/opt”. Do not change the settings in this file, but rather create a custom admin file and enter an alternate “basedir” directive if you want to install your package into a different directory. We are going to install our package into “/var/applications”, and call our custom admin file “custom”.

    First, create and edit “/var/sadm/install/admin/custom”, adding a line similar to this:
    basedir=/var/applications/$PKGINST

    Next, issue the pkgadd command with the “-a” flag to call you alternative admin file:

    pkgadd -d device -a custom PackageName

    This really comes in handy when your customers want to retain control over their packages, but you don’t want to give them access to write packages into the system area. More detailed instructions can be found here.

    This entry was posted on Sunday, December 28th, 2008 at 7:25 pm and is filed under Data and Technology. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
  • 0 Comments

    Take a look at some of the responses we have had to this article.

  • Leave a Reply

    Let us know what you thought.

  • Name(required):

    Email(required):

    Website:

    Message: