Adding and Updating Software in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

Installing and Updating Packages

The following table shows similarities and differences between the pkg install and pkg update commands.

pkg install
  • Requires one or more package names as operands.

  • Installs packages that are not currently installed.

  • Updates packages that are already installed.

  • Does not downgrade packages. If you specify an installed package at a lower version, the system does not install that package.

pkg update
  • Takes zero or more names of packages that are already installed as operands.

  • Updates installed packages.

  • Specifying no package names or specifying '*' updates all packages that are installed in the image.

  • Downgrades installed packages to the version specified in the FMRI.

  • Does not install packages that are not already installed. If you specify a package that is not already installed, the system does not install that package.

See the preserve and overlay attributes of the file action in the pkg(5) man page to understand how files with these attributes are handled during installation and update.