Go to main content

man pages section 1: User Commands

Exit Print View

Updated: July 2017
 
 

pkgdiff(1)

Name

pkgdiff - compare package manifests

Synopsis

/usr/bin/pkgdiff [-i attribute]... [-o attribute]
    [-t action_name[,action_name]...]...
    [-v name=value]... (file1 | -) (file2 | -)

Description

pkgdiff compares two package manifests and reports differences. One of the manifests can be read from stdin by specifying - in place of the file name. pkgdiff sorts each manifest and action into a consistent order before comparison.

Output is in the following form:

+ complete_action

This action is in file2 but not in file1.

- complete_action

This action is in file1 but not in file2.

actionname keyvalue [variant values, if any]
- attribute1=value1

This attribute,value is in file1 but not in file2.

+ attribute2=value2

This attribute,value is in file2 but not in file1.

Actions with different variants but the same type and key attribute value are treated as separate actions for purposes of comparison. Thus, actions that change attributes are shown in their complete form rather than as attribute changes.

Options

The following options are supported:

–-help

Display a usage message.

–i attribute

Ignore attribute if present during comparisons. File hash values can be ignored with –i hash. This option cannot be used with the –o option. This option can be specified multiple times.

–o attribute

Only report differences in attribute. This option cannot be used with the –i option. This option elides any action changes that do not affect attribute on an action.

–t action_name[,action_name]...

Only compare the specified actions. Multiple actions can be specified in a comma-separated list. The value of action_name is one of the actions listed in “Actions” in the pkg(5) man page. For example, the following values could be specified for action_name: file, dir, driver, depend, set. This option can be specified multiple times.

–v name=value

Only compute differences for this variant value. For example, only compute differences for arch=sparc. This variant tag is removed for all actions before comparison. Only one value can be specified per variant. This option can be specified multiple times for different variants.

Exit Status

The following exit values are returned:

0

No differences were found.

1

Differences were found.

2

Invalid command line options were specified.

3

An error occurred.

99

An unanticipated exception occurred.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
package/pkg
Interface Stability
Uncommitted

See Also

pkg (5)

https://java.net/projects/ips/pages/Home