Software Distributor Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (5900-2561, March 2013)
The version component has the form: [,r <op> revision][,a <op> arch]
[,v <op> vendor][,c <op> category][,q=qualifier][,l=location]
[,fr <op> revision][,fa <op> arch]
where:
• Fully qualified software specifications include the r=, a=, and v= version components, even
if they contain empty strings. For installed software, l= is also required.
• All version components are repeatable within a single specification (e.g. r>=A.12, r<A.20).
If multiple components are used, the selection must match all components.
• The <op> (relational operator) component performs individual comparisons on dot-separated
fields and can be of the form:
=, ==, >=, <=, <, >, or !=
For example, r>=B.11.11 chooses all revisions greater than or equal to B.11.11. The
system compares each dot-separated field to find matches.
• The = (equals) relational operator lets you specify selections with the shell wildcard and
pattern-matching notations: [ ], *, ?, and ! For example, the expression r=1[01].* returns
any revision in version 10 or version 11.
• No space or tab characters are allowed in a software selection.
• qualifier is a string that can be attached to any product or bundle to help you filter a
software specification.
• location applies only to installed software and refers to software installed to a location
other than the default product directory.
• fr and fa apply only to filesets.
• A software instance_id can take the place of the version component. It has the form:
[instance_id] within the context of an exported catalog, where instance_id is an integer
that distinguishes versions of products and bundles with the same tag.
1.4.1.2 Software Files
To keep the command line shorter, software selection input files let you specify long lists of software
products. With a software selection file, you only have to specify the single file name.
The -f command-line option lets you specify a software selection file. For example:
swinstall -f mysoft -s /mnt/cd @ targetB
In this example, the file mysoft (which resides in the current working directory for software files)
contains a list of software selections for the depot /mnt/cd.
In the software file, blank lines and comments (lines beginning with #) are ignored. Each software
selection must be specified on a separate line.
1.4.1.3 How Commands and Options Interact with Selections
The enforce_selections command option enables you to control the behavior of the
swinstall, swcopy, swremove, swconfig and swverify commands based on the availability
of the software selections. If enforce_selections is set to the default value of false, then
any of these commands continue to execute even if any one of the selections is available. If
enforce_selections is set to true, then any of these commands continue to execute only if
all the software selections are available.
For more information on the options, see “Using Command Options” (page 37).
36 Introduction to Software Distributor