Basic Rules of pkg(5) Command Multi-Repository Support
When multiple repositories are associated with an installation image and when using the
pkg command-line interface (CLI) with only package names, the following rules apply. These
rules can be overridden in the CLI by using explicit authorities and package
version numbers.
Table 2-1 Rules for Multi-Repository Support
Package Installation Type |
Rules When Only Package Names Are Provided |
New package installations |
The
latest available version of new packages are always installed from the preferred authority
unless the authority is provided in the FMRI during installation. Even if
later versions of the package are available in other authorities, those later versions
are not installed by default. The FMRI includes descriptive information about the
package, such as the package name, version information, and date. See pkg(1) Uses FMRIs. |
Package updates:
package originally installed from preferred |
If the package was originally installed from the
preferred authority, then the latest available update of the package can be installed
from the _current_ preferred authority. The package can be install from the _current_ preferred
even if the preferred authority designation had been moved to another authority after
the package had been originally installed. Even if later versions of the
package are available in other authorities, those later versions are not installed by
default. |
Package updates: package originally installed from non-preferred |
If the package was originally installed
from a non-preferred authority, then the latest available update of the package is
installed from the authority from which the package was originally installed. Even
if later versions of the package are available in other authorities, those later
versions are not installed by default. |