swmodify.1m (2010 09)

s
swmodify(1M) swmodify(1M)
1 An error occurred during the session (for example, bad syntax in the PSF, invalid
software_selection, etc.) Review stderr or the logfile for details.
DIAGNOSTICS
The
swmodify command writes to stdout, stderr, and to specific logfiles.
Standard Output
In verbose mode, the
swmodify command writes messages for significant events. These include:
a begin and end session message,
selection, analysis, and execution task messages.
Standard Error
The
swmodify command also writes messages for all WARNING and ERROR conditions to stderr.
Logfile
The
swmodify command logs events to the command logfile and to the
swmodify logfile associated
with each target_selection.
Command Log
The
swmodify command logs all messages to the the logfile
/var/adm/sw/swmodify.log
.
(The user can specify a different logfile by modifying the
logfile option.)
Target Log
When modifying installed software,
swmodify logs messages to the file
var/adm/sw/swagent.log
beneath the root directory (for example, / or an alternate root
directory). When modifying available software (within a depot),
swmodify logs messages to the
file swagent.log beneath the depot directory (for example, /var/spool/sw
).
EXAMPLES
Add additional files to an existing fileset:
swmodify -xfiles=’/tmp/a /tmp/b /tmp/c’ PRODUCT.FILESET
Replace the definitions of existing files in an existing fileset (for example, to update current values for the
files’ attributes):
chown root /tmp/a /tmp/b
swmodify -x files=’/tmp/a /tmp/b’ PRODUCT.FILESET
Delete control files from a fileset in an existing depot:
swmodify -d -u -x control_files=’checkinstall subscript’ \
PRODUCT.FILESET @ /var/spool/sw
Create a new fileset definition where the description is contained in the PSF file
new_fileset_definition
:
swmodify -s new_fileset_definition
Delete an obsolete fileset definition:
swmodify -u PRODUCT.FILESET
Commit a patch (remove files saved for patch rollback):
swmodify -x patch_commit=true PATCH
Create some new bundle definitions for products in an existing depot:
swmodify -d -s new_bundle_definitions \* @ /mfg/master_depot
Modify the values of some fileset’s attributes:
swmodify -a state=installed PRODUCT.FILESET
Modify the attributes of a depot:
swmodify -a title=’Manufacturing’s master depot’ \
-a description=</tmp/mfg.description @ /mfg/master_depot
WARNINGS
If the target_selection is a software depot and you delete file definitions from the given
software_selections, the files contents are not deleted from the depot.
8 Hewlett-Packard Company 8 HP-UX 11i Version 3: September 2010