Adding and Updating Software in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

Comparing the pkg fix and pkg revert Commands

Both the pkg fix command and the pkg revert command reinstall components of installed packages. The following table shows some of the similarities and differences between these two commands.

pkg fix
  • Operates on packages. Takes one or more package names or patterns that match package names as operands.

  • Operates only on packages that fail pkg verify.

  • Fixes only errors reported by pkg verify. Does not redeliver other content or metadata from the package.

pkg revert
  • Operates on files. Takes one or more file names or tag names as operands.

  • Redelivers files identified by the operands. Does not redeliver other content or metadata from the package.