pkg-name [pkg-name ...] |
| The named packages are installed. A package name of will cause pkg_add to read from stdin. If the packages are not found in the current working directory, pkg_add will search them in each directory named by PKG_PATH. |
-v | Turn on verbose output. |
-I | If any installation scripts (pre-install or post-install) exist for a given package, do not execute them. |
-n | Do not actually install a package, just report the steps that would be taken if it was. |
-R | Do not record the installation of a package. This means that you cannot deinstall it later, so only use this option if you know what you are doing! |
-r | Use the remote fetching feature. This will determine the appropriate objformat and release and then fetch and install the package. |
-f | Force installation to proceed even if prerequisite packages are not installed or the requirements script fails. Although pkg_add will still try to find and auto-install missing prerequisite packages, a failure to find one will not be fatal. |
-p prefix |
| Set prefix as the directory in which to extract files from a package. If a package has set its default directory, it will be overridden by this flag. Note that only the first @cwd directive will be replaced, since pkg_add has no way of knowing which directory settings are relative and which are absolute. It is rare in any case to see more than one directory transition made, but when such does happen and you wish to have control over *all* directory transitions, then you may then wish to look into the use of MASTER and SLAVE modes (see the -M and -S options). |
-t template |
| Use template as the input to mktemp(3) when creating a "staging area". By default, this is the string /var/tmp/instmp.XXXXXX, but it may be necessary to override it in the situation where space in your /var/tmp directory is limited. Be sure to leave some number of X characters for mktemp(3) to fill in with a unique ID. You can get a performance boost by setting the staging area template to reside on the same disk partition as target directories for package file installation; often this is /usr. |
-M | Run in MASTER mode. This is a very specialized mode for running pkg_add and is meant to be run in conjunction with SLAVE mode. When run in this mode, pkg_add does no work beyond extracting the package into a temporary staging area (see the -t option), reading in the packing list, and then dumping it (prefaced by the current staging area) to stdout where it may be filtered by a program such as sed(1). When used in conjunction with SLAVE mode, it allows you to make radical changes to the package structure before acting on its contents. |
-S | Run in SLAVE mode. This is a very specialized mode for running pkg_add and is meant to be run in conjunction with MASTER mode. When run in this mode, pkg_add expects the release contents to be already extracted and waiting in the staging area, the location of which is read as a string from stdin. The complete packing list is also read from stdin, and the contents then acted on as normal. |
-C chrootdir |
| Before doing any operations, chroot(2) to the chrootdir directory so that all package files, and the package database, are installed to chrootdir. Note that chrootdir needs to be a fairly complete file system, including everything normally needed by pkg_add to run. This flag was added to help support operations done by sysinstall(8) and is not expected to be useful for much else. Be careful that chrootdir is properly configured and cannot be modified by normal users, versions of commands like fetch(1) may be run inside chrootdir as a side effect. |
|