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

Document Information


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

Locking Packages to a Specified Version

Marking Packages To Be Avoided

Controlling Installation of Optional Components

Displaying a Variant

Changing a Variant

Displaying a Facet

Changing a Facet

Updating an Image

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 [-Hl] [-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
2011-09-07T12:15:52      update                   pkg                Succeeded
2011-09-26T18:53:12      refresh-publishers       pkg                Succeeded
2011-09-26T18:53:50      rebuild-image-catalogs   pkg                Succeeded
2011-09-27T09:05:34      update                   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
2011-09-07T12:15:52      0:13:56   update                   Succeeded
2011-09-26T18:53:12      0:01:22   refresh-publishers       Succeeded
2011-09-26T18:53:50      0:00:44   rebuild-image-catalogs   Succeeded
2011-09-27T09:05:34      0:20:08   update                   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 pkg purge-history command to delete all command history information.

# pkg purge-history