.\" Pipe this output to groff -Tutf8 | less .\" .mso an.tmac .TH "OPAM-INSTALL" 1 "" "Opam 2.1.5" "Opam Manual" .\" Disable hyphenation and ragged-right .nh .ad l .SH NAME .P opam\N'45'install \N'45' Install a list of packages\N'46' .SH SYNOPSIS .P \fBopam install\fR [\fIOPTION\fR]\N'46'\N'46'\N'46' [\fIPACKAGES\fR]\N'46'\N'46'\N'46' .SH DESCRIPTION .P This command installs one or more packages inside the currently selected switch (see \fBopam switch\fR)\N'46' Once installed, you can remove packages with \fBopam remove\fR, upgrade them with \fBopam upgrade\fR, and list them with \fBopam list\fR\N'46' See \fBopam pin\fR as well to manage package versions, reroute existing packages or add packages that are not defined in the repositories\N'46' .P All required dependencies of the selected packages will be installed first\N'46' Any already installed packages having dependencies, or optional dependencies to the changed packages will be recompiled\N'46' The proposed solution may also imply removing incompatible or conflicting packages\N'46' .P If paths are provided as argument instead of packages, they are assumed to point to either project source directories containing one or more package definitions (\fIopam\fR files), or directly to \fIopam\fR files\N'46' Then the corresponding packages will be pinned to their local directory and installed (unless \fB\N'45'\N'45'deps\N'45'only\fR was specified)\N'46' .SH ARGUMENTS .TP 4 \fIPACKAGES\fR List of package names, with an optional version or constraint, e\N'46'g `pkg\N'39', `pkg\N'46'1\N'46'0\N'39' or `pkg>=0\N'46'5\N'39' ; or files or directory names containing package description, with explicit directory (e\N'46'g\N'46' `\N'46'/foo\N'46'opam\N'39' or `\N'46'\N'39') .SH OPTIONS .TP 4 \fB\N'45'\N'45'assume\N'45'built\fR For use on locally\N'45'pinned packages: assume they have already been correctly built, and only run their installation instructions, directly from their source directory\N'46' This skips the build instructions and can be useful to install packages that are being worked on\N'46' Implies \fI\N'45'\N'45'inplace\N'45'build\fR\N'46' No locally\N'45'pinned packages will be skipped\N'46' .TP 4 \fB\N'45'\N'45'check\fR Exit with 0 if all the dependencies of \fIPACKAGES\fR are already installed\N'46' If not, output the names of the missing dependencies to stdout, and exits with 1\N'46' .TP 4 \fB\N'45'\N'45'depext\N'45'only\fR Resolves the package installation normally, but only installs the required system dependencies, without affecting the opam switch state or installing opam packages\N'46' .TP 4 \fB\N'45'\N'45'deps\N'45'only\fR Install all its dependencies, but don\N'39't actually install the package\N'46' .TP 4 \fB\N'45'\N'45'destdir\fR=\fIDIR\fR Copy the files installed by the given package within the current opam switch below the prefix \fIDIR\fR, respecting their hierarchy, after installation\N'46' Caution, calling this can overwrite, but never remove files, even if they were installed by a previous use of \fB\N'45'\N'45'destdir\fR, e\N'46'g\N'46' on a previous version of the same package\N'46' See \fBopam remove \N'45'\N'45'destdir\fR to revert\N'46' .TP 4 \fB\N'45'\N'45'download\N'45'only\fR Fetch the sources of the packages, but don\N'39't build or install anything\N'46' .TP 4 \fB\N'45'\N'45'ignore\N'45'conflicts\fR Used with \fB\N'45'\N'45'deps\N'45'only\fR, ignores conflicts of given package .TP 4 \fB\N'45'j\fR \fIJOBS\fR, \fB\N'45'\N'45'jobs\fR=\fIJOBS\fR Set the maximal number of concurrent jobs to use\N'46' The default value is calculated from the number of cores\N'46' You can also set it using the \fB$OPAMJOBS\fR environment variable\N'46' .TP 4 \fB\N'45'\N'45'no\fR Answer no to all opam yes/no questions without prompting\N'46' See also \fB\N'45'\N'45'confirm\N'45'level\fR\N'46' This is equivalent to setting \fB$OPAMNO\fR to "true"\N'46' .TP 4 \fB\N'45'\N'45'restore\fR Attempt to restore packages that were marked for installation but have been removed due to errors .TP 4 \fB\N'45'\N'45'set\N'45'root\fR Mark given packages as installed roots\N'46' This is the default for newly manually\N'45'installed packages\N'46' .TP 4 \fB\N'45'\N'45'unset\N'45'root\fR Mark given packages as "installed automatically"\N'46' .TP 4 \fB\N'45'y\fR, \fB\N'45'\N'45'yes\fR Answer yes to all opam yes/no questions without prompting\N'46' See also \fB\N'45'\N'45'confirm\N'45'level\fR\N'46' This is equivalent to setting \fB$OPAMYES\fR to "true"\N'46' .SH PACKAGE BUILD OPTIONS .TP 4 \fB\N'45'\N'45'assume\N'45'depexts\fR Skip the installation step for any missing system packages, and attempt to proceed with compilation of the opam packages anyway\N'46' If the installation is successful, opam won\N'39't prompt again about these system packages\N'46' Only meaningful if external dependency handling is enabled\N'46' .TP 4 \fB\N'45'b\fR, \fB\N'45'\N'45'keep\N'45'build\N'45'dir\fR Keep the build directories after compiling packages\N'46' This is equivalent to setting \fB$OPAMKEEPBUILDDIR\fR to "true"\N'46' .TP 4 \fB\N'45'\N'45'build\N'45'doc\fR Removed in \fB2\N'46'1\fR, use \fI\N'45'\N'45'with\N'45'doc\fR instead\N'46' .TP 4 \fB\N'45'\N'45'build\N'45'test\fR Removed in \fB2\N'46'1\fR, use \fI\N'45'\N'45'with\N'45'test\fR instead\N'46' .TP 4 \fB\N'45'd\fR, \fB\N'45'\N'45'with\N'45'doc\fR Build the package documentation\N'46' This only affects packages listed on the command\N'45'line\N'46' This is equivalent to setting \fB$OPAMWITHDOC\fR (or the deprecated \fB$OPAMBUILDDOC\fR) to "true"\N'46' .TP 4 \fB\N'45'\N'45'dry\N'45'run\fR Simulate the command, but don\N'39't actually perform any changes\N'46' This also can be set with environment variable \fB$OPAMDEBUG\fR\N'46' .TP 4 \fB\N'45'\N'45'fake\fR This option registers the actions into the opam database, without actually performing them\N'46' WARNING: This option is dangerous and likely to break your opam environment\N'46' You probably want \fB\N'45'\N'45'dry\N'45'run\fR\N'46' You\N'39've been \fIwarned\fR\N'46' .TP 4 \fB\N'45'\N'45'ignore\N'45'constraints\N'45'on\fR[=\fIPACKAGES\fR] (default=) Forces opam to ignore version constraints on all dependencies to the listed packages\N'46' This can be used to test compatibility, but expect builds to break when using this\N'46' Note that version constraints on optional dependencies and conflicts are unaffected\N'46' This is equivalent to setting \fB$OPAMIGNORECONSTRAINTS\fR\N'46' .TP 4 \fB\N'45'\N'45'inplace\N'45'build\fR When compiling a package which has its source bound to a local directory, process the build and install actions directly in that directory, rather than in a clean copy handled by opam\N'46' This only affects packages that are explicitly listed on the command\N'45'line\N'46' This is equivalent to setting \fB$OPAMINPLACEBUILD\fR to "true"\N'46' .TP 4 \fB\N'45'\N'45'lock\N'45'suffix\fR=\fISUFFIX\fR (absent=locked) Set locked files suffix to \fISUFFIX\fR\N'46' .TP 4 \fB\N'45'\N'45'locked\fR In commands that use opam files found from pinned sources, if a variant of the file with an added \N'46'\fIlocked\fR extension is found (e\N'46'g\N'46' \fBfoo\N'46'opam\N'46'locked\fR besides \fBfoo\N'46'opam\fR), that will be used instead\N'46' This is typically useful to offer a more specific set of dependencies and reproduce similar build contexts, hence the name\N'46' The \fI lock\fRoption can be used to generate such files, based on the versions of the dependencies currently installed on the host\N'46' This is equivalent to setting the \fB$OPAMLOCKED\fR environment variable\N'46' Note that this option doesn\N'39't generally affect already pinned packages\N'46' .TP 4 \fB\N'45'm\fR \fIMAKE\fR, \fB\N'45'\N'45'make\fR=\fIMAKE\fR Removed in \fB2\N'46'1\fR, use \fIopam config set[\N'45'global] make MAKE\fR instead\N'46' .TP 4 \fB\N'45'\N'45'no\N'45'checksums\fR Do not verify the checksum of downloaded archives\N'46'This is equivalent to setting \fB$OPAMNOCHECKSUMS\fR to "true"\N'46' .TP 4 \fB\N'45'\N'45'no\N'45'depexts\fR Temporarily disables handling of external dependencies\N'46' This can be used if a package is not available on your system package manager, but you installed the required dependency by hand\N'46' Implies \fB\N'45'\N'45'assume\N'45'depexts\fR, and stores the exceptions upon success as well\N'46' .TP 4 \fB\N'45'\N'45'require\N'45'checksums\fR Reject the installation of packages that don\N'39't provide a checksum for the upstream archives\N'46' This is equivalent to setting \fB$OPAMREQUIRECHECKSUMS\fR to "true"\N'46' .TP 4 \fB\N'45'\N'45'reuse\N'45'build\N'45'dir\fR Reuse existing build directories (kept by using \fB\N'45'\N'45'keep\N'45'build\N'45'dir\fR), instead of compiling from a fresh clone of the source\N'46' This can be faster, but also lead to failures if the build systems of the packages don\N'39't handle upgrades of dependencies well\N'46' This is equivalent to setting \fB$OPAMREUSEBUILDDIR\fR to "true"\N'46' .TP 4 \fB\N'45'\N'45'show\N'45'actions\fR Call the solver and display the actions\N'46' Don\N'39't perform any changes\N'46' This is equivalent to setting \fB$OPAMSHOW\fR\N'46' .TP 4 \fB\N'45'\N'45'skip\N'45'updates\fR When running an install, upgrade or reinstall on source\N'45'pinned packages, they are normally updated from their origin first\N'46' This flag disables that behaviour and will keep them to their version in cache\N'46' This is equivalent to setting \fB$OPAMSKIPUPDATE\fR\N'46' .TP 4 \fB\N'45't\fR, \fB\N'45'\N'45'with\N'45'test\fR Build and \fBrun\fR the package unit\N'45'tests\N'46' This only affects packages listed on the command\N'45'line\N'46' This is equivalent to setting \fB$OPAMWITHTEST\fR (or the deprecated \fB$OPAMBUILDTEST\fR) to "true"\N'46' .TP 4 \fB\N'45'\N'45'unlock\N'45'base\fR Removed in \fB2\N'46'1\fR, use \fI\N'45'\N'45'update\N'45'invariant\fR instead\N'46' .TP 4 \fB\N'45'\N'45'update\N'45'invariant\fR Allow changes to the packages set as switch base (typically, the main compiler)\N'46' Use with caution\N'46' This is equivalent to setting the \fB$OPAMUNLOCKBASE\fR environment variable .SH COMMON OPTIONS .P These options are common to all commands\N'46' .TP 4 \fB\N'45'\N'45'best\N'45'effort\fR Don\N'39't fail if all requested packages can\N'39't be installed: try to install as many as possible\N'46' Note that not all external solvers may support this option (recent versions of \fIaspcud\fR or \fImccs\fR should)\N'46' This is equivalent to setting \fB$OPAMBESTEFFORT\fR environment variable\N'46' .TP 4 \fB\N'45'\N'45'cli\fR=\fIMAJOR\N'46'MINOR\fR (absent=2\N'46'1) Use the command\N'45'line interface syntax and semantics of \fIMAJOR\N'46'MINOR\fR\N'46' Intended for any persistent use of opam (scripts, blog posts, etc\N'46'), any version of opam in the same MAJOR series will behave as for the specified MINOR release\N'46' The flag was not available in opam 2\N'46'0, so to select the 2\N'46'0 CLI, set the \fBOPAMCLI\fR environment variable to \fI2\N'46'0\fR instead of using this parameter\N'46' .TP 4 \fB\N'45'\N'45'color\fR=\fIWHEN\fR Colorize the output\N'46' \fIWHEN\fR must be one of `always\N'39', `never\N'39' or `auto\N'39'\N'46' .TP 4 \fB\N'45'\N'45'confirm\N'45'level\fR=\fILEVEL\fR Confirmation level, \fILEVEL\fR must be one of `ask\N'39', `no\N'39', `yes\N'39' or `unsafe\N'45'yes\N'39'\N'46' Can be specified more than once\N'46' If \fB\N'45'\N'45'yes\fR or \fB\N'45'\N'45'no\fR are also given, the value of the last \fB\N'45'\N'45'confirm\N'45'level\fR is taken into account\N'46' This is equivalent to setting \fB $OPAMCONFIRMLEVEL\fR`\N'46' .TP 4 \fB\N'45'\N'45'criteria\fR=\fICRITERIA\fR Specify user \fIpreferences\fR for dependency solving for this run\N'46' Overrides both \fB$OPAMCRITERIA\fR and \fB$OPAMUPGRADECRITERIA\fR\N'46' For details on the supported language, and the external solvers available, see \fI http://opam\N'46'ocaml\N'46'org/doc/External_solvers\N'46'html\fR\N'46' A general guide to using solver preferences can be found at \fI http://www\N'46'dicosmo\N'46'org/Articles/usercriteria\N'46'pdf\fR\N'46' .TP 4 \fB\N'45'\N'45'cudf\fR=\fIFILENAME\fR Debug option: Save the CUDF requests sent to the solver to \fIFILENAME\fR\N'45'\N'46'cudf\N'46' .TP 4 \fB\N'45'\N'45'debug\fR Print debug message to stderr\N'46' This is equivalent to setting \fB$OPAMDEBUG\fR to "true"\N'46' .TP 4 \fB\N'45'\N'45'debug\N'45'level\fR=\fILEVEL\fR Like \fB\N'45'\N'45'debug\fR, but allows specifying the debug level (\fB\N'45'\N'45'debug\fR sets it to 1)\N'46' Equivalent to setting \fB$OPAMDEBUG\fR to a positive integer\N'46' .TP 4 \fB\N'45'\N'45'git\N'45'version\fR Print the git version of opam, if set (i\N'46'e\N'46' you are using a development version), and exit\N'46' .TP 4 \fB\N'45'\N'45'help\fR[=\fIFMT\fR] (default=auto) Show this help in format \fIFMT\fR\N'46' The value \fIFMT\fR must be one of `auto\N'39', `pager\N'39', `groff\N'39' or `plain\N'39'\N'46' With `auto\N'39', the format is `pager` or `plain\N'39' whenever the \fBTERM\fR env var is `dumb\N'39' or undefined\N'46' .TP 4 \fB\N'45'\N'45'ignore\N'45'pin\N'45'depends\fR Ignore extra pins required by packages that get pinned, either manually through \fIopam pin\fR or through \fIopam install DIR\fR\N'46' This is equivalent to setting \fBIGNOREPINDEPENDS=true\fR\N'46' .TP 4 \fB\N'45'\N'45'json\fR=\fIFILENAME\fR Save the results of the opam run in a computer\N'45'readable file\N'46' If the filename contains the character `%\N'39', it will be replaced by an index that doesn\N'39't overwrite an existing file\N'46' Similar to setting the \fB$OPAMJSON\fR variable\N'46' .TP 4 \fB\N'45'\N'45'no\N'45'aspcud\fR Removed in \fB2\N'46'1\fR\N'46' .TP 4 \fB\N'45'\N'45'no\N'45'auto\N'45'upgrade\fR When configuring or updating a repository that is written for an earlier opam version (1\N'46'2), opam internally converts it to the current format\N'46' This disables this behaviour\N'46' Note that repositories should define their format version in a \N'39'repo\N'39' file at their root, or they will be assumed to be in the older format\N'46' It is, in any case, preferable to upgrade the repositories manually using \fIopam admin upgrade [\N'45'\N'45'mirror URL]\fR when possible\N'46' .TP 4 \fB\N'45'\N'45'no\N'45'self\N'45'upgrade\fR Opam will replace itself with a newer binary found at \fBOPAMROOT/opam\fR if present\N'46' This disables this behaviour\N'46' .TP 4 \fB\N'45'q\fR, \fB\N'45'\N'45'quiet\fR Disables \fB\N'45'\N'45'verbose\fR\N'46' .TP 4 \fB\N'45'\N'45'root\fR=\fIROOT\fR Use \fIROOT\fR as the current root path\N'46' This is equivalent to setting \fB$OPAMROOT\fR to \fIROOT\fR\N'46' .TP 4 \fB\N'45'\N'45'safe\fR, \fB\N'45'\N'45'readonly\fR Make sure nothing will be automatically updated or rewritten\N'46' Useful for calling from completion scripts, for example\N'46' Will fail whenever such an operation is needed ; also avoids waiting for locks, skips interactive questions and overrides the \fB$OPAMDEBUG\fR variable\N'46' This is equivalent to set environment variable \fB$OPAMSAFE\fR\N'46' .TP 4 \fB\N'45'\N'45'solver\fR=\fICMD\fR Specify the CUDF solver to use for resolving package installation problems\N'46' This is either a predefined solver (this version of opam supports builtin\N'45'mccs+lp(), builtin\N'45'mccs+glpk, builtin\N'45'dummy\N'45'z3\N'45'solver, builtin\N'45'dummy\N'45'0install\N'45'solver, aspcud, mccs, aspcud\N'45'old, packup), or a custom command that should contain the variables %{input}%, %{output}%, %{criteria}%, and optionally %{timeout}%\N'46' This is equivalent to setting \fB$OPAMEXTERNALSOLVER\fR\N'46' .TP 4 \fB\N'45'\N'45'strict\fR Fail whenever an error is found in a package definition or a configuration file\N'46' The default is to continue silently if possible\N'46' .TP 4 \fB\N'45'\N'45'switch\fR=\fISWITCH\fR Use \fISWITCH\fR as the current compiler switch\N'46' This is equivalent to setting \fB$OPAMSWITCH\fR to \fISWITCH\fR\N'46' .TP 4 \fB\N'45'\N'45'use\N'45'internal\N'45'solver\fR Disable any external solver, and use the built\N'45'in one (this requires that opam has been compiled with a built\N'45'in solver)\N'46' This is equivalent to setting \fB$OPAMNOASPCUD\fR or \fB$OPAMUSEINTERNALSOLVER\fR\N'46' .TP 4 \fB\N'45'v\fR, \fB\N'45'\N'45'verbose\fR Be more verbose\N'46' One \fB\N'45'v\fR shows all package commands, repeat to also display commands called internally (e\N'46'g\N'46' \fItar\fR, \fIcurl\fR, \fIpatch\fR etc\N'46') Repeating \fIn\fR times is equivalent to setting \fB$OPAMVERBOSE\fR to "\fIn\fR"\N'46' .TP 4 \fB\N'45'\N'45'version\fR Show version information\N'46' .TP 4 \fB\N'45'w\fR, \fB\N'45'\N'45'working\N'45'dir\fR Whenever updating packages that are bound to a local, version\N'45'controlled directory, update to the current working state of their source instead of the last committed state, or the ref they are pointing to\N'46' As source directory is copied as it is, if it isn\N'39't clean it may result on a opam build failure\N'46'This only affects packages explicitly listed on the command\N'45'line\N'46'It can also be set with \fB$OPAMWORKINGDIR\fR\N'46' .SH ENVIRONMENT .P Opam makes use of the environment variables listed here\N'46' Boolean variables should be set to "0", "no", "false" or the empty string to disable, "1", "yes" or "true" to enable\N'46' .P \fIOPAMALLPARENS\fR surround all filters with parenthesis\N'46' .P \fIOPAMASSUMEDEPEXTS\fR see option `\N'45'\N'45'assume\N'45'depexts\N'39'\N'46' .P \fIOPAMAUTOREMOVE\fR see remove option `\N'45'\N'45'auto\N'45'remove\N'39'\N'46' .P \fIOPAMBESTEFFORT\fR see option `\N'45'\N'45'best\N'45'effort\N'39'\N'46' .P \fIOPAMBESTEFFORTPREFIXCRITERIA\fR sets the string that must be prepended to the criteria when the `\N'45'\N'45'best\N'45'effort\N'39' option is set, and is expected to maximise the `opam\N'45'query\N'39' property in the solution\N'46' .P \fIOPAMBUILDDOC\fR Removed in \fB2\N'46'1\fR\N'46' .P \fIOPAMBUILDTEST\fR Removed in \fB2\N'46'1\fR\N'46' .P \fIOPAMCLI\fR see option `\N'45'\N'45'cli\N'39'\N'46' .P \fIOPAMCOLOR\fR when set to \fIalways\fR or \fInever\fR, sets a default value for the `\N'45'\N'45'color\N'39' option\N'46' .P \fIOPAMCONFIRMLEVEL\fR see option `\N'45'\N'45'confirm\N'45'level`\N'46' \fBOPAMCONFIRMLEVEL\fR has priority over \fBOPAMYES\fR and \fBOPAMNO\fR\N'46' .P \fIOPAMCRITERIA\fR specifies user \fIpreferences\fR for dependency solving\N'46' The default value depends on the solver version, use `config report\N'39' to know the current setting\N'46' See also option \N'45'\N'45'criteria\N'46' .P \fIOPAMCUDFFILE\fR save the cudf graph to \fIfile\fR\N'45'actions\N'45'explicit\N'46'dot\N'46' .P \fIOPAMCUDFTRIM\fR controls the filtering of unrelated packages during CUDF preprocessing\N'46' .P \fIOPAMCURL\fR can be used to select a given \N'39'curl\N'39' program\N'46' See \fIOPAMFETCH\fR for more options\N'46' .P \fIOPAMDEBUG\fR see options `\N'45'\N'45'debug\N'39' and `\N'45'\N'45'debug\N'45'level\N'39'\N'46' .P \fIOPAMDEBUGSECTIONS\fR if set, limits debug messages to the space\N'45'separated list of sections\N'46' Sections can optionally have a specific debug level (for example, \fBCLIENT:2\fR or \fBCLIENT CUDF:2\fR), but otherwise use `\N'45'\N'45'debug\N'45'level\N'39'\N'46' .P \fIOPAMDIGDEPTH\fR defines how aggressive the lookup for conflicts during CUDF preprocessing is\N'46' .P \fIOPAMDOWNLOADJOBS\fR sets the maximum number of simultaneous downloads\N'46' .P \fIOPAMDROPWORKINGDIR\fR overrides packages previously updated with \fB\N'45'\N'45'working\N'45'dir\fR on update\N'46' Without this variable set, opam would keep them unchanged unless explicitly named on the command\N'45'line\N'46' .P \fIOPAMDRYRUN\fR see option `\N'45'\N'45'dry\N'45'run\N'39'\N'46' .P \fIOPAMEDITOR\fR sets the editor to use for opam file editing, overrides \fI$EDITOR\fR and \fI$VISUAL\fR\N'46' .P \fIOPAMERRLOGLEN\fR sets the number of log lines printed when a sub\N'45'process fails\N'46' 0 to print all\N'46' .P \fIOPAMEXTERNALSOLVER\fR see option `\N'45'\N'45'solver\N'39'\N'46' .P \fIOPAMFAKE\fR see option `\N'45'\N'45'fake\N'39'\N'46' .P \fIOPAMFETCH\fR specifies how to download files: either `wget\N'39', `curl\N'39' or a custom command where variables \fB%{url}%\fR, \fB%{out}%\fR, \fB%{retry}%\fR, \fB%{compress}%\fR and \fB%{checksum}%\fR will be replaced\N'46' Overrides the \N'39'download\N'45'command\N'39' value from the main config file\N'46' .P \fIOPAMFIXUPCRITERIA\fR same as \fIOPAMUPGRADECRITERIA\fR, but specific to fixup\N'46' .P \fIOPAMIGNORECONSTRAINTS\fR see install option `\N'45'\N'45'ignore\N'45'constraints\N'45'on\N'39'\N'46' .P \fIOPAMIGNOREPINDEPENDS\fR see option `\N'45'\N'45'ignore\N'45'pin\N'45'depends\N'39'\N'46' .P \fIOPAMINPLACEBUILD\fR see option `\N'45'\N'45'inplace\N'45'build\N'39'\N'46' .P \fIOPAMJOBS\fR sets the maximum number of parallel workers to run\N'46' .P \fIOPAMJSON\fR log json output to the given file (use character `%\N'39' to index the files)\N'46' .P \fIOPAMKEEPBUILDDIR\fR see install option `\N'45'\N'45'keep\N'45'build\N'45'dir\N'39'\N'46' .P \fIOPAMKEEPLOGS\fR tells opam to not remove some temporary command logs and some backups\N'46' This skips some finalisers and may also help to get more reliable backtraces\N'46' .P \fIOPAMLOCKED\fR combination of `\N'45'\N'45'locked\N'39' and `\N'45'\N'45'lock\N'45'suffix\N'39' options\N'46' .P \fIOPAMLOGS\fR \fIlogdir\fR sets log directory, default is a temporary directory in /tmp .P \fIOPAMMAKECMD\fR set the system make command to use\N'46' .P \fIOPAMMERGEOUT\fR merge process outputs, stderr on stdout\N'46' .P \fIOPAMNO\fR answer no to any question asked, see options `\N'45'\N'45'no` and `\N'45'\N'45'confirm\N'45'level`\N'46' \fBOPAMNO\fR is ignored if either \fBOPAMCONFIRMLEVEL\fR or \fBOPAMYES\fR is set\N'46' .P \fIOPAMNOAGGREGATE\fR with `opam admin check\N'39', don\N'39't aggregate packages\N'46' .P \fIOPAMNOASPCUD\fR Deprecated\N'46' .P \fIOPAMNOAUTOUPGRADE\fR disables automatic internal upgrade of repositories in an earlier format to the current one, on \N'39'update\N'39' or \N'39'init\N'39'\N'46' .P \fIOPAMNOCHECKSUMS\fR enables option \N'45'\N'45'no\N'45'checksums when available\N'46' .P \fIOPAMNODEPEXTS\fR disables system dependencies handling, see option `\N'45'\N'45'no\N'45'depexts\N'39'\N'46' .P \fIOPAMNOENVNOTICE\fR Internal\N'46' .P \fIOPAMNOSELFUPGRADE\fR see option `\N'45'\N'45'no\N'45'self\N'45'upgrade\N'39' .P \fIOPAMPINKINDAUTO\fR sets whether version control systems should be detected when pinning to a local path\N'46' Enabled by default since 1\N'46'3\N'46'0\N'46' .P \fIOPAMPRECISETRACKING\fR fine grain tracking of directories\N'46' .P \fIOPAMPREPRO\fR set this to false to disable CUDF preprocessing\N'46' Less efficient, but might help debugging solver issue\N'46' .P \fIOPAMREQUIRECHECKSUMS\fR Enables option `\N'45'\N'45'require\N'45'checksums\N'39' when available (e\N'46'g\N'46' for `opam install\N'39')\N'46' .P \fIOPAMRETRIES\fR sets the number of tries before failing downloads\N'46' .P \fIOPAMREUSEBUILDDIR\fR see option `\N'45'\N'45'reuse\N'45'build\N'45'dir\N'39'\N'46' .P \fIOPAMROOT\fR see option `\N'45'\N'45'root\N'39'\N'46' This is automatically set by `opam env \N'45'\N'45'root=DIR \N'45'\N'45'set\N'45'root\N'39'\N'46' .P \fIOPAMROOTISOK\fR don\N'39't complain when running as root\N'46' .P \fIOPAMSAFE\fR see option `\N'45'\N'45'safe\N'39'\N'46' .P \fIOPAMSHOW\fR see option `\N'45'\N'45'show\N'39'\N'46' .P \fIOPAMSKIPUPDATE\fR see option `\N'45'\N'45'skip\N'45'updates\N'39'\N'46' .P \fIOPAMSKIPVERSIONCHECKS\fR bypasses some version checks\N'46' Unsafe, for compatibility testing only\N'46' .P \fIOPAMSOLVERALLOWSUBOPTIMAL\fR (default `true\N'39') allows some solvers to still return a solution when they reach timeout; while the solution remains assured to be consistent, there is no guarantee in this case that it fits the expected optimisation criteria\N'46' If `true\N'39', opam willcontinue with a warning, if `false\N'39' a timeout is an error\N'46' Currently only the builtin\N'45'z3 backend handles this degraded case\N'46' .P \fIOPAMSOLVERTIMEOUT\fR change the time allowance of the solver\N'46' Default is 60\N'46'0, set to 0 for unlimited\N'46' Note that all solvers may not support this option\N'46' .P \fIOPAMSTATS\fR display stats at the end of command\N'46' .P \fIOPAMSTATUSLINE\fR display a dynamic status line showing what\N'39's currently going on on the terminal\N'46' (one of one of `always\N'39', `never\N'39' or `auto\N'39') .P \fIOPAMSTRICT\fR fail on inconsistencies (file reading, switch import, etc\N'46')\N'46' .P \fIOPAMSWITCH\fR see option `\N'45'\N'45'switch\N'39'\N'46' Automatically set by `opam env \N'45'\N'45'switch=SWITCH \N'45'\N'45'set\N'45'switch\N'39'\N'46' .P \fIOPAMUNLOCKBASE\fR see install option `\N'45'\N'45'unlock\N'45'base\N'39'\N'46' .P \fIOPAMUPGRADECRITERIA\fR specifies user \fIpreferences\fR for dependency solving when performing an upgrade\N'46' Overrides \fIOPAMCRITERIA\fR in upgrades if both are set\N'46' See also option \N'45'\N'45'criteria\N'46' .P \fIOPAMUSEINTERNALSOLVER\fR see option `\N'45'\N'45'use\N'45'internal\N'45'solver\N'39'\N'46' .P \fIOPAMUSEOPENSSL\fR force openssl use for hash computing\N'46' .P \fIOPAMUTF8\fR use UTF8 characters in output (one of one of `always\N'39', `never\N'39' or `auto\N'39')\N'46' By default `auto\N'39', which is determined from the locale)\N'46' .P \fIOPAMUTF8MSGS\fR use extended UTF8 characters (camels) in opam messages\N'46' Implies \fIOPAMUTF8\fR\N'46' This is set by default on OSX only\N'46' .P \fIOPAMVALIDATIONHOOK\fR if set, uses the `%{hook%}\N'39' command to validate an opam repository update\N'46' .P \fIOPAMVERBOSE\fR see option `\N'45'\N'45'verbose\N'39'\N'46' .P \fIOPAMVERSIONLAGPOWER\fR do not use\N'46' .P \fIOPAMWITHDOC\fR see install option `\N'45'\N'45'with\N'45'doc\N'39'\N'46' .P \fIOPAMWITHTEST\fR see install option `\N'45'\N'45'with\N'45'test\N'46' .P \fIOPAMWORKINGDIR\fR see option `\N'45'\N'45'working\N'45'dir\N'39'\N'46' .P \fIOPAMYES\fR see options `\N'45'\N'45'yes\N'39' and `\N'45'\N'45'confirm\N'45'level`\N'46' \fBOPAMYES\fR has has priority over \fBOPAMNO\fR and is ignored if \fBOPAMCONFIRMLEVEL\fR is set\N'46' .P \fIOPAMVAR_var\fR overrides the contents of the variable \fIvar\fR when substituting `%{var}%` strings in `opam` files\N'46' .P \fIOPAMVAR_package_var\fR overrides the contents of the variable \fIpackage:var\fR when substituting `%{package:var}%` strings in `opam` files\N'46' .SH CLI VERSION .P All scripts and programmatic invocations of opam should use `\N'45'\N'45'cli\N'39' in order to ensure that they work seamlessly with future versions of the opam client\N'46' Additionally, blog posts or other documentation can benefit, as it prevents information from becoming stale\N'46' .P Although opam only supports roots (\fI~/\N'46'opam/\fR) for the current version, it does provide backwards compatibility for its command\N'45'line interface\N'46' .P Since CLI version support was only added in opam 2\N'46'1, use \fIOPAMCLI\fR to select 2\N'46'0 support (as opam 2\N'46'0 will just ignore it), and `\N'45'\N'45'cli=2\N'46'1\N'39' for 2\N'46'1 (or later) versions, since an environment variable controlling the parsing of syntax is brittle\N'46' To this end, opam displays a warning if \fIOPAMCLI\fR specifies a valid version other than 2\N'46'0, and also if `\N'45'\N'45'cli=2\N'46'0\N'39' is specified\N'46' .P The command\N'45'line version is selected by using the `\N'45'\N'45'cli\N'39' option or the \fIOPAMCLI\fR environment variable\N'46' `\N'45'\N'45'cli\N'39' may be specified morethan once, where the last instance takes precedence\N'46' \fIOPAMCLI\fR is only inspected if `\N'45'\N'45'cli\N'39' is not given\N'46' .SH EXIT STATUS .P As an exception to the following, the `exec\N'39' command returns 127 if the command was not found or couldn\N'39't be executed, and the command\N'39's exit value otherwise\N'46' .TP 4 0 Success, or true for boolean queries\N'46' .TP 4 1 False\N'46' Returned when a boolean return value is expected, e\N'46'g\N'46' when running with \fB\N'45'\N'45'check\fR, or for queries like \fBopam lint\fR\N'46' .TP 4 2 Bad command\N'45'line arguments, or command\N'45'line arguments pointing to an invalid context (e\N'46'g\N'46' file not following the expected format)\N'46' .TP 4 5 Not found\N'46' You requested something (package, version, repository, etc\N'46') that couldn\N'39't be found\N'46' .TP 4 10 Aborted\N'46' The operation required confirmation, which wasn\N'39't given\N'46' .TP 4 15 Could not acquire the locks required for the operation\N'46' .TP 4 20 There is no solution to the user request\N'46' This can be caused by asking to install two incompatible packages, for example\N'46' .TP 4 30 Error in package definition, or other metadata files\N'46' Using \fB\N'45'\N'45'strict\fR raises this error more often\N'46' .TP 4 31 Package script error\N'46' Some package operations were unsuccessful\N'46' This may be an error in the packages or an incompatibility with your system\N'46' This can be a partial error\N'46' .TP 4 40 Sync error\N'46' Could not fetch some remotes from the network\N'46' This can be a partial error\N'46' .TP 4 50 Configuration error\N'46' Opam or system configuration doesn\N'39't allow operation, and needs fixing\N'46' .TP 4 60 Solver failure\N'46' The solver failed to return a sound answer\N'46' It can be due to a broken external solver, or an error in solver configuration\N'46' .TP 4 99 Internal error\N'46' Something went wrong, likely due to a bug in opam itself\N'46' .TP 4 130 User interrupt\N'46' SIGINT was received, generally due to the user pressing Ctrl\N'45'C\N'46' .SH FURTHER DOCUMENTATION .P See https://opam\N'46'ocaml\N'46'org/doc\N'46' .SH AUTHORS .P Vincent Bernardoff .sp -1 .P Raja Boujbel .sp -1 .P Roberto Di Cosmo .sp -1 .P Thomas Gazagnaire .sp -1 .P Louis Gesbert .sp -1 .P Fabrice Le Fessant .sp -1 .P Anil Madhavapeddy .sp -1 .P Guillem Rieu .sp -1 .P Ralf Treinen .sp -1 .P Frederic Tuong .SH BUGS .P Check bug reports at https://github\N'46'com/ocaml/opam/issues\N'46'