• 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've had to this article.

  • Leave a Reply

    Let us know what you thought.

  • Name (required):

    Email (required):

    Website:

    Message:

Visitors have tagged this post: pkgadd change BASEDIR (29) - pkgadd solaris 10 (25) - pkgadd change install directory (20) - pkgadd install path (20) - admin (13) - pkgadd base directory (12) - pkgadd directory (11) - Enter path to package base directory (11) - pkgadd change base directory (9) - solaris pkgadd change install directory (9) - pkgadd change directory (9) - pkgadd different directory (9) - how to install solaris package (8) - Enter the path to the Solaris packages (8) - solaris pkgadd directory (8) - install pkg solaris (8) - pkgadd alternate directory (7) - solaris install package (7) - install package solaris 10 (7) - solaris 10 pkgadd (7) - install solaris package to certain directory (7) - solaris package install path (6) - change basedir pkgadd (6) - how to install solaris packages (6) - pkgadd path (6) - solaris pkgadd different directory (5) - solaris pkgadd BASEDIR (5) - solaris package base directory (5) - solaris pkgadd base directory (5) - how to install package solaris (5) - solaris BASEDIR (5) - install solaris package (5) - solaris pkg command (5) - solaris package add (5) - basedir solaris (5) - install base package (5) - install pkg file solaris (5) - solaris install package in user directory (5) - installing solaris packages (5) - pkgadd change install path (5) - how to install package in Solaris (4) - pkgadd location (4) - solaris default path (4) - make install solaris (4) - solaris pkgadd howto (4) - pkgadd solaris change basedir (4) - solaris package commands (4) - install package solaris (4) - create solaris package (4) - xterm solaris package (4) - specify directory with pkgadd (4) - Pkgadd solaris administrator (4) - pkgadd alternate location (4) - solaris package change install directory (4) - pkgadd override install location (4) - solaris package basedir (3) - solaris pkg file (3) - solaris package (3) - sun pkgadd to alternative directory (3) - how to install application on solaris (3) - how to install apps on solaris (3) - install a package on solaris (3) - how to install packages in solaris (3) - BASEDIR pkgadd (3) - solaris package install (3) - pkgadd install to different directory (3) - sun pkg install (3) - solaris pkgadd alternate directory (3) - change BASEDIR solaris package (3) - pkgadd installation directory (3) - howto install package solaris 10 (3) - pkgadd change install dir (3) - solaris pkgadd (3) - solaris install pkg (3) - pkgadd solaris 10 specifying a different directory (3) - pkgadd change install location (3) - solaris package install directory (3) - pkgadd install location (3) - how to change installation dir pkgadd (3) - pkgadd custom (3) - how to install a package on solaris (3) - how to install packages solaris 10 (3) - how to install pkg solaris (3) - pkgadd change installation directory (3) - solaris pkgadd change basedir (3) - solaris packaging installation dir (3) - solaris package change BASEDIR (3) - pkgadd specify alternative installation path (3) - pkgadd solaris (3) - solaris pkg installation (3) - solaris pkgadd install (3) - pkgadd installdir (3) - pkgadd different location (3) - solaris 10 install package pkgadd (3) - change install directory package solaris (3) - install package into specific directory solaris (3) - how to specify a install directory when adding a package on Solaris 10 (3) - how to change basedir at solaris packages (3) - solaris pkgadd alternate location (3) - \"Enter path to package base directory\ (3) - solaris admin file (3) - pkgadd custom installation directory (3) - How do you install package to a specific directory (3) - adding a solaris package file (2) - install solaris package directory (2) - solaris default base directory (2) - solaris pkgadd change directory (2) - alternative to pkgadd (2) - how to install solaris PKG (2) - pkgadd to different dir (2) - package base directory pkg (2) - how to install solaris (2) - change solaris package installation path (2) - solaris pkgadd install to different directory (2) - install solaris pkg in alternate location (2) - change base package directory from opt (2) - pkgadd in one directory (2) - make install alternate location (2) - install pkgadd solaris (2) - how to install packages on solaris (2) - pkgadd solaris location (2) - pkgadd from directory (2) - solaris package path (2) - solaris how to install packages (2) - package base directory (2) - solaris change package base directory (2) - how to install .pkg on solaris (2) - package install solaris (2) - default package directory in solaris (2) - solaris pkgadd install directory (2) - pkgadd howto (2) - solaris package change install path (2) - pkgadd solaris basedir default (2) - install package from directory (2) - pkgadd solaris change installation directory (2) - solaris install package pkgadd (2) - package install path in solaris (2) - how to install package on solaris (2) - pkgadd specify directory (2) - change location solaris (2) - pkgadd to a different directory (2) - add package solaris (2) - installing packages in alternate base directory solaris (2) - solaris install path (2) - solaris pkgadd location (2) - solaris pkgadd path (2) - Solaris install packages (2) - solaris pkgadd install to a different directory (2) - solaris install pkg file (2) - adding packages in solaris (2) -