PKG-INSTALL(8)

NAME
pkg install - installs packages from remote package repositories

SYNOPSIS
pkg install [-yqfgxX] <pkg-origin> <...>

DESCRIPTION
pkg install is used for installation of packages from a remote package repository database. It can install multiple packages specified on the command-line from multiple repositories.

If a package is found to exists in more than one package repository the first matching repository is the one that the package will be first tried to be fetched from.

If fetching from the repository fails for some reason the next repository, which the package is found to exist is the one that is tried until the package is fetched, or all repositories are tried.

Multiple package repositories is activated only when the environment variable PACKAGESITE is not defined.

If PACKAGESITE is defined then only the repository to which it points is the one that is used during the package installations.

It is always good to update your package repositories first before doing a remote installation using pkg install

In order to update your remote package repositories please refer to the pkg-update(8) man page.

OPTIONS
The following options are supported by pkg install:

-y  Assume yes when asked for confirmation before package installation.

-g  Treat the package names as shell glob patterns.

-x  Treat the package names as regular expressions.

-X  Treat the package names as extended regular expressions.

-f  Force the reinstallation of the package if already installed.

-q  Force quiet output.

ENVIRONMENT
The following environment variables affect the execution of pkg install. See pkg.conf(5) for further description.

ASSUME_ALWAYS_YES

HANDLE_RC_SCRIPTS

PACKAGESITE

PKG_CACHEDIR

PKG_DBDIR

PKG_MULTIREPOS

FILES
See pkg.conf(5).

SEE ALSO
pkg(8), pkg-add(8), pkg-autoremove(8), pkg-search(8), pkg-backup(8), pkg-create(8), pkg-delete(8), pkg-info(8), pkg-register(8), pkg-repo(8), pkg-set(8,) pkg-update(8), pkg-updating(8), pkg-upgrade(8), pkg-version(8), pkg-which(8), pkg.conf(5)