During installation, Solaris packages use admin files to control things like whether subsequent upgrades are allowed and whether multiple versions of the application can be installed in parallel. This article describes how admin files work with ManageSoft.
Solaris package installations can be controlled by two files:
- Admin file: An admin file contains settings that can apply to the installation of multiple Solaris packages. Refer to the admin file man pages for detailed descriptions of this file. If the installation command does not specify a particular admin file, /var/sadm/install/admin/default is used by default.
This file is restrictive, and tailored to interactive installations. Using it when installing Solaris packages using ManageSoft may result in package installation or self-healing failures, depending on the default system settings. ManageSoft Corporation recommends that Packaging Engineers create a different admin file for use during installation. (Altering the default admin file is not recommended.)
- Response file: The values in a response file apply to a specific package. This file is generated by performing apkgask on the target package. Refer to the pkgask man pages for a further description of the pkgask command. If you will use a response file, create it before proceeding.
If a Solaris package should be installed using an admin and/or response file, you must record the filenames in the ManageSoft package so that the ManageSoft client can pass them to pkgadd at installation time.
Complete the following steps to add details about admin and response files to a ManageSoft package:
- Create the ManageSoft package using the Solaris software import wizard.
- Create an admin file with the desired settings.
For a full description of the admin file parameters refer to the Solaris pkgadd man pages. ManageSoft recommends specifying following settings to enable unattended installations Solaris packages:
- Save the admin file in the ManageSoft repository, in the same directory as the pkginfo file for the Solaris package.
- If required, create a response file. Save it to the same directory.
- In the ManageSoft warehouse, open the ManageSoft package.
- Expand the Project node until the External Installer node is visible.
- Open the SMC installer properties.
- Click the General tab.
- Modify the install command with the following additional command line arguments:
- To use an admin file:
- To use a response file:
- To use an admin file:
- Click the Advanced tab.
- Modify the reinstallation command in the same way you modified the install command at step 8.
- Save, pack, and distribute the package.