.\" Pipe this output to groff -m man -K utf8 -T utf8 | less -R .\" .mso an.tmac .TH "OPAM-UPDATE" 1 "" "Opam 2.2.1" "Opam Manual" .\" Disable hyphenation and ragged-right .nh .ad l .SH NAME .P opam\N'45'update \N'45' Update the list of available packages\N'46' .SH SYNOPSIS .P \fBopam update\fR [\fIOPTION\fR]… [\fINAMES\fR]… .SH DESCRIPTION .P Update the package definitions\N'46' This fetches the newest version of the repositories configured through \fB opam repository\fR, and the sources of installed development packages and packages pinned in the current switch\N'46' To use the updated sources and definitions, use \fBopam upgrade\fR\N'46' .SH ARGUMENTS .TP 4 \fINAMES\fR List of repository or development package names to update\N'46' .SH OPTIONS .TP 4 \fB\N'45'a\fR, \fB\N'45'\N'45'all\fR Update all configured repositories, not only what is set in the current switch .TP 4 \fB\N'45'\N'45'check\fR Do the update, then return with code 0 if there were any upstream changes, 1 if there were none\N'46' Repositories or development packages that failed to update are considered without changes\N'46' With \fB\N'45'\N'45'upgrade\fR, applies to the upgrade step: that is \fBopam update \N'45'\N'45'upgrade \N'45'\N'45'check\fR behaves like \fBopam update && opam upgrade \N'45'\N'45'check\fR, returning 0 if there are available upgrades, rather than upstream updates\N'46' .TP 4 \fB\N'45'\N'45'depexts\fR Request the system package manager to update its databases (skipping all opam packages, unless \fB\N'45'\N'45'development\fR or \fB\N'45'\N'45'repositories\fR is also specified)\N'46' This generally requires \fBsudo\fR rights\N'46' .TP 4 \fB\N'45'\N'45'development\fR Update development packages (skipping repositories unless \fB\N'45'\N'45'repositories\fR is also specified)\N'46' .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'R\fR, \fB\N'45'\N'45'repositories\fR Update repositories (skipping development packages unless \fB\N'45'\N'45'development\fR is also specified)\N'46' .TP 4 \fB\N'45'u\fR, \fB\N'45'\N'45'upgrade\fR Automatically run \fBopam upgrade\fR after the update\N'46' .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=\fB2\N'46'2\fR) 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 \fBalways\fR, \fBnever\fR or \fBauto\fR\N'46' .TP 4 \fB\N'45'\N'45'confirm\N'45'level\fR=\fILEVEL\fR Confirmation level, \fILEVEL\fR must be one of \fBask\fR, \fBno\fR, \fByes\fR or \fBunsafe\N'45'yes\fR\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 \fB$OPAMCRITERIA\fR, \fB$OPAMFIXUPCRITERIA\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 where is the n\N'45'th call to the solver during the opam run\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=\fBauto\fR) Show this help in format \fIFMT\fR\N'46' The value \fIFMT\fR must be one of \fBauto\fR, \fBpager\fR, \fBgroff\fR or \fBplain\fR\N'46' With \fBauto\fR, the format is \fBpager\fR or \fBplain\fR whenever the \fBTERM\fR env var is \fBdumb\fR 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\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'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'0install, 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' .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 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 and reinstall\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 \fIOPAMREPOSITORYTARRING\fR internally store the repositories as tar\N'46'gz files\N'46' This can be much faster on filesystems that don\N'39't cope well with scanning large trees but have good caching in /tmp\N'46' However this is slower in the general case\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 \fBalways\fR, \fBnever\fR or \fBauto\fR) .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 Removed in \fB2\N'46'2\fR\N'46' .P \fIOPAMUTF8\fR use UTF8 characters in output (one of one of \fBalways\fR, \fBnever\fR or \fBauto\fR)\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 macOS 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 \fIOPAMWITHDEVSETUP\fR see install option `\N'45'\N'45'with\N'45'dev\N'45'setup\N'39'\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 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' .TP 4 0 on success\N'46' .TP 4 123 on indiscriminate errors reported on standard error\N'46' .TP 4 124 on command line parsing errors\N'46' .TP 4 125 on unexpected internal errors (bugs)\N'46' .SH FURTHER DOCUMENTATION .P See https://opam\N'46'ocaml\N'46'org/doc\N'46' .SH AUTHORS .P David Allsopp .sp -1 .P Vincent Bernardoff .sp -1 .P Raja Boujbel .sp -1 .P Kate Deplaix .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 SEE ALSO .P opam(1) .SH BUGS .P Check bug reports at https://github\N'46'com/ocaml/opam/issues\N'46'