JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Adding and Updating Oracle Solaris 11.1 Software Packages     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

1.  Introduction to the Image Packaging System

2.  IPS Graphical User Interfaces

3.  Getting Information About Software Packages

4.  Installing and Updating Software Packages

5.  Configuring Installed Images

Configuring Publishers

Displaying Publisher Information

Adding, Modifying, or Removing Package Publishers

Controlling Installation of Optional Components

Showing and Changing Variant Values

Showing and Changing Facet Values

Locking Packages to a Specified Version

Relaxing Version Constraints Specified by Incorporations

Specifying a Default Application Implementation

Avoiding Installing Some Packages in a Group Package

Updating an Image

Image Update Best Practices

Specifying the Version to Install

Specifying a Version Constraint Prior to Updating

Constraining the Available Packages

Downgrading an Image

More Update Command Options

Configuring Image and Publisher Properties

Boot Environment Policy Image Properties

Properties for Signing Packages

Image Properties for Signed Packages

Publisher Properties for Signed Packages

Configuring Package Signature Properties

Additional Image Properties

Setting Image Properties

Displaying the Values of Image Properties

Setting the Value of an Image Property

Resetting the Value of an Image Property

Creating an Image

Viewing Operation History

Viewing Operation History

Use the pkg history command to view the command history in the current image.

/usr/bin/pkg history [-HNl] [-t [time | time-time],...]
    [-o column,...] [-n number]

Use the -l option to display more information, including the outcome of the command, the time the command completed, the version and name of the client used, the name of the user who performed the operation, and any errors encountered while executing the command.

Use the -n option to display only the specified number of most recent operations.

$ pkg history -n4
START                    OPERATION                CLIENT             OUTCOME
2012-08-06T16:32:03      fix                      pkg                Succeeded
2012-08-06T16:41:47      revert                   pkg                Succeeded
2012-08-06T17:56:22      set-property             pkg                Succeeded
2012-08-06T17:56:53      unset-property           pkg                Succeeded

Use the -o option to display output using the specified comma-separated list of column names. See the list of column names in pkg(1).

$ pkg history -o start,time,operation,outcome -n4
START                    TIME      OPERATION                OUTCOME
2012-08-06T16:32:03      0:00:27   fix                      Succeeded
2012-08-06T16:41:47      0:00:43   revert                   Succeeded
2012-08-06T17:56:22      0:00:00   set-property             Succeeded
2012-08-06T17:56:53      0:00:00   unset-property           Succeeded 

Use the -t option to log records for a comma-separated list of timestamps, formatted with %Y-%m-%dT%H:%M:%S (see strftime(3C)). To specify a range of times, use a hyphen (-) between a start and finish timestamp. The keyword now can be used as an alias for the current time. If the timestamps specified contain duplicate timestamps or overlapping date ranges, only a single instance of each duplicate history event is printed.

Use the -N option to display any release note text for the operation. The -N option cannot be used with the -o option.

Use the pkg purge-history command to delete all command history information.

$ pfexec pkg purge-history