14.19.17 SOFTWARE_CONDITIONS (specifying a package condition)
In the SOFTWARE_CONDITIONS tag, specify a package condition as a precondition for remote installation. This tag is used for the dcmpack command.
The following table shows the parameters that can be specified, and their corresponding command arguments:
Parameter |
Content |
Command argument |
---|---|---|
Package condition |
/l package-condition |
- Organization of this subsection
(1) Format
SOFTWARE_CONDITIONS{ condition=package-condition }
(2) Description
-
condition=package-condition
Specify the package condition to be a precondition for remote installation in the following format:
- package-ID equal-sign version/revision-to-be-compared:generation-number-to-be-compared
-
package-ID
Specify the package ID to be a precondition for remote installation. Specify the ID specified in the package_id parameter in the PACKAGING_INFORMATION tag.
equal-sign
Specify =, >, >=, <, <=, or <>.
version/revision-to-be-compared
Specify the version/revision number to be compared. The number must not exceed eight digits.
generation-number-to-be-compared
Specify the generation number to be compared. The number must not exceed four digits.
(3) Notes
-
You cannot specify this tag for packages to be distributed to UNIX computers.
-
You can specify multiple package conditions. When multiple conditions are specified, the conditions are connected by logical OR. The package is installed when at least one of the specified conditions is met.
-
When using a command argument (/1) to specify a package condition, you can add package conditions until the total number of package conditions and system conditions (specified by /O) reaches 10.
-
The elements of a package condition are compared by character comparison beginning with the top of each element.
The magnitude correlation between specifiable characters is: single-byte alphabetic characters (A to Z) > single-byte numeric characters (0 to 9) > forward slash (/) > single-byte space ( ).
Therefore, when <, <=, >, or >= is specified as the equal sign and the version/revision and generation number to be compared are specified, adjust the digits of version/revision and generation number to those of the comparison-target software. For example, in an environment where the software PROGRAM with a version/revision of 0300 and a generation number of 0000 has been installed, do not specify PROGRAM>2:0 but specify PROGRAM>0200:0000 by adjusting the number of digits.
(4) Examples of specification
- condition=P-2412-3554>0500:0000
-
Installation is executed when the software that has a version number larger than 05-00, a generation number larger than 0000, and a package ID of P-2412-3554 has been installed.
- condition=P-2412-3554<>0510:0000
-
Installation is executed when the software that has a version number different from 05-10, a generation number different from 0000, and a package ID of P-2412-3554 has been installed.