OPAM-UNPIN(1)

πŸ’… OPAM-UNPIN β€” bestie's guide to unpinning stuff πŸ’…

Heyyy so welcome to OPAM-UNPIN, part of the Opam Manual fam. This one is literally an alias β€” it's not even doing its own thing, it's just pin remove in a cute little trench coat. Let's get into it πŸ’–


✨ NAME ✨

opam-unpin β€” it's giving "an alias for pin remove." That's it, that's the whole job πŸŽ€


✨ SYNOPSIS ✨

opam unpin [OPTION]… [ARG]…

✨ DESCRIPTION ✨

Okay so real talk: opam unpin is an alias for opam pin remove. Same energy, different name 🌸

And if you wanna know the details? Run opam pin --help and it'll spill everything. iykyk πŸ’…


✨ PACKAGE BUILD OPTIONS ✨

These are all the build-time knobs and dials, bestie. Buckle up πŸ¦‹

  • --assume-depexts β€” Skips the install step for any system packages you're missing, and just tries to compile the opam packages anyway. If the install happens to work out, opam won't nag you about those system packages again. Heads up though: this only actually means anything if external dependency handling is turned on.
  • -b, --keep-build-dir β€” Keeps the build directories around after compiling packages. Exactly the same as setting $OPAMKEEPBUILDDIR to "true" ✨
  • --build-doc β€” Nope, removed in 2.1. Use --with-doc instead πŸ’€
  • --build-test β€” Also removed in 2.1. Use --with-test instead πŸ’€
  • -d, --with-doc β€” Builds the package documentation. Only affects packages you listed on the command-line, no sneaky extras. Same as setting $OPAMWITHDOC (or the deprecated $OPAMBUILDDOC) to "true" 🌈
  • --dry-run β€” Simulates the command but doesn't actually change anything. You can also flip this on with the $OPAMDEBUG environment variable πŸ‘‘
  • --fake β€” Registers the actions into the opam database without actually performing them.
⚠️ WARNING: this option is dangerous and likely to break your opam environment. You probably want --dry-run. You've been warned. Fr fr, don't do it πŸ™ˆ
  • --ignore-available-on[=PACKAGES] (default=) β€” Forces opam to mark the listed packages as available. Great for testing compatibility, but expect builds to break when you use it. Note that version constraints of the packages' dependencies are unaffected πŸ’…
  • --ignore-constraints-on[=PACKAGES] (default=) β€” Forces opam to ignore version constraints on all dependencies of the listed packages. Again, cool for compatibility testing, but expect builds to break. Note that availability of the packages, version constraints on optional dependencies, and conflicts are all unaffected. Same as setting $OPAMIGNORECONSTRAINTS πŸŽ€
  • --inplace-build β€” When compiling a package whose source is bound to a local directory, it processes the build and install actions right there in that directory instead of in a clean copy that opam manages. Only affects packages explicitly listed on the command-line. Same as setting $OPAMINPLACEBUILD to "true" 🌸
  • -j JOBS, --jobs=JOBS β€” Sets the max number of concurrent jobs to use. The default gets calculated from the number of cores you've got. You can also set it with the $OPAMJOBS environment variable ✨
  • --lock-suffix=SUFFIX (absent=locked) β€” Sets the locked files suffix to SUFFIX πŸ’œ
  • --locked β€” In commands that use opam files found from pinned sources, if a variant of the file with an added .locked extension exists (like foo.opam.locked sitting next to foo.opam), that one gets used instead. This is typically useful for offering a more specific set of dependencies and reproducing similar build contexts β€” hence the name, bestie. The lock option can generate files like that, based on the versions of the dependencies currently installed on your host. Same as setting the $OPAMLOCKED environment variable. Note that this option doesn't generally affect already pinned packages πŸ‘‘
  • -m MAKE, --make=MAKE β€” Removed in 2.1. Use opam config set[-global] make MAKE instead πŸ’€
  • --no-checksums β€” Doesn't verify the checksum of downloaded archives. Same as setting $OPAMNOCHECKSUMS to "true" πŸ¦‹
  • --no-depexts β€” Temporarily disables handling of external dependencies. Use this if a package isn't available on your system package manager but you installed the required dependency by hand. Implies --assume-depexts, and stores the exceptions upon success as well πŸŽ€
  • --require-checksums β€” Rejects installation of packages that don't provide a checksum for the upstream archives. Same as setting $OPAMREQUIRECHECKSUMS to "true" πŸ”₯
  • --reuse-build-dir β€” Reuses existing build directories (the ones you kept with --keep-build-dir) instead of compiling from a fresh clone of the source. Can be faster, but also can lead to failures if the build systems of the packages don't handle upgrades of dependencies well. Same as setting $OPAMREUSEBUILDDIR to "true" 😭
  • --show-actions β€” Calls the solver and displays the actions. Doesn't perform any changes. Same as setting $OPAMSHOW ✨
  • --skip-updates β€” When you run an install, upgrade or reinstall on source-pinned packages, they normally get updated from their origin first. This flag disables that behaviour and keeps them at their version in cache. Same as setting $OPAMSKIPUPDATE πŸ’–
  • -t, --with-test β€” Builds and runs the package unit-tests. Only affects packages listed on the command-line. Same as setting $OPAMWITHTEST (or the deprecated $OPAMBUILDTEST) to "true" 🌈
  • --unlock-base β€” Removed in 2.1. Use --update-invariant instead πŸ’€
  • --update-invariant β€” Allows changes to the packages set as switch base (typically, the main compiler). Use with caution! Same as setting the $OPAMUNLOCKBASE environment variable ⭐
  • --verbose-on=PACKAGES β€” Gets more verbose on specific packages. Same as setting $OPAMVERBOSE πŸ‘‘
  • --with-dev-setup β€” Includes development tools only dependencies 🧚

✨ OPTIONS ✨

The main-character options, let's gooo 🫢

  • --all β€” When unpinning, removes all pins in the given switch πŸ’…
  • --current β€” When pinning, uses the currently installed version and metadata of the package: this avoids reinstallations caused by upstream metadata changes, and can also be used to keep a package that was removed upstream πŸ‘‘
  • --dev-repo β€” Pins to the upstream package source for the latest development version πŸ”₯
  • -e, --edit β€” With opam pin add, edits the opam file as with opam pin edit after pinning ✨
  • -k KIND, --kind=KIND β€” Sets the kind of pinning. Must be one of version, path, http, git, darcs, hg, none or auto. If it's unset or auto, it gets inferred from the format of the target β€” defaulting to the appropriate version control if one is detected in the given directory, or to path otherwise. OPAMPINKINDAUTO can be set to "0" to disable automatic detection of version control. Use none to pin without a target (for virtual packages) 🌸
  • -n, --no-action β€” Just records the new pinning status, and doesn't prompt for (re)installation or removal of affected packages πŸŽ€
  • --normalise β€” Prints a list of available packages to pin in the format name.version^url, which is comprehensible by opam pin add. Available only with the scan subcommand. An example of use is opam pin scan . --normalise | grep foo | xargs opam pin add πŸ’œ
  • --recursive β€” Allows recursive lookups of *.opam files. Cf. --subpath also πŸ¦‹
  • -s, --short β€” Outputs raw lists of names, one per line, skipping any details 😌
  • --subpath=PATH β€” *.opam files get retrieved from the given sub directory instead of the top directory. Sources are then taken from the targeted sub directory β€” internally only this subdirectory is copied/fetched. Can be combined with --recursive to get a recursive lookup on the subpath 🌈
  • --with-version=VERSION β€” Sets the pinning version to VERSION for named PACKAGES or packages retrieved from TARGET. It has priority over any other version specification (opam file version field, name.vers argument). When pinning to a version, the package source from that version is used, but declared as being VERSION to opam. Using --with-version is equivalent to using --edit and adjusting the version in the package definition file ⭐

more coming bestie, don't go anywhere πŸ’–

✨ COMMON OPTIONS ✨

okay bestie, these flags? they work on literally every single opam command. like, the whole squad. let's go πŸ’…


  • --best-effort β€” don't crash out just because opam couldn't install everything you asked for; it'll try to install as many as it possibly can. heads up tho: not every external solver plays nice with this option (recent versions of aspcud or mccs should be fine 🫢). it's the same as setting the $OPAMBESTEFFORT environment variable.
  • --cli=MAJOR.MINOR (absent=2.6) β€” makes opam use the command-line interface syntax and semantics of MAJOR.MINOR. this is for anyone doing persistent opam stuff β€” scripts, blog posts, all that β€” where any opam version in the same MAJOR series will behave exactly like the MINOR release you picked. important lore: this flag didn't exist in opam 2.0, so if you want the 2.0 CLI, you gotta set the OPAMCLI environment variable to 2.0 instead of using this parameter. iykyk 😭
  • --color=WHEN β€” colorizes the output, obviously πŸ’–. WHEN has to be one of always, never or auto.
  • --confirm-level=LEVEL β€” sets the confirmation level. LEVEL must be one of ask, no, yes or unsafe-yes. you can pass it more than once! and if --yes or --no are also hanging around, the value of the last --confirm-level is the one that counts. this is equivalent to setting $OPAMCONFIRMLEVEL.
  • --criteria=CRITERIA β€” tells opam your user preferences for dependency solving, just for this run. it overrides $OPAMCRITERIA, $OPAMFIXUPCRITERIA and $OPAMUPGRADECRITERIA. for the deets on the supported language and which external solvers exist, look at http://opam.ocaml.org/doc/External_solvers.html. and there's a whole general guide to using solver preferences at http://www.dicosmo.org/Articles/usercriteria.pdf πŸ“š.
  • --cudf=FILENAME β€” debug option bestie πŸ›: it saves the CUDF requests sent to the solver into FILENAME-<n>.cudf, where <n> is the n-th call to the solver during the opam run.
  • --debug β€” prints debug messages to stderr. equivalent to setting $OPAMDEBUG to "true".
  • --debug-level=LEVEL β€” same energy as --debug, but you get to pick the debug level (--debug just sets it to 1). equivalent to setting $OPAMDEBUG to a positive integer.
  • --git-version β€” prints the git version of opam, if it's set (aka you're running a development version), then exits. like a little peek behind the curtain πŸ¦‹.
  • --help[=FMT] (default=auto) β€” shows this very help in format FMT. FMT must be one of auto, pager, groff or plain. with auto, the format becomes pager or plain whenever the TERM env var is dumb or undefined.
  • --ignore-pin-depends β€” ignores the extra pins that pinned packages require β€” whether they got pinned manually via opam pin or through opam install DIR. this is equivalent to setting IGNOREPINDEPENDS=true.
  • --json=FILENAME β€” saves the results of the opam run into a computer-readable file πŸ’». if the filename contains the character %, it gets replaced by an index that doesn't overwrite an existing file. similar to setting the $OPAMJSON variable.
  • --no β€” answers no to every opam yes/no question without ever prompting you. see also --confirm-level. this is equivalent to setting $OPAMNO to "true".
  • --no-aspcud β€” removed in 2.1. gone. ghosted. πŸ’€
  • --no-auto-upgrade β€” so when opam configures or updates a repository written for an earlier opam version (1.2), it internally converts it to the current format. this flag disables that behaviour. note that repositories should define their format version in a 'repo' file at their root, otherwise they'll be assumed to be in the older format. and honestly? it's preferable in any case to upgrade the repositories manually with opam admin upgrade [--mirror URL] when you can 🌸.
  • --no-self-upgrade β€” normally opam will replace itself with a newer binary found at OPAMROOT/opam if one's there πŸ‘€. this disables that behaviour.
  • -q, --quiet β€” disables --verbose.
  • --root=ROOT β€” uses ROOT as the current root path. equivalent to setting $OPAMROOT to ROOT.
  • --safe, --readonly β€” makes sure nothing gets automatically updated or rewritten. super useful for calling from completion scripts, for example. it'll fail whenever such an operation is needed; it also avoids waiting for locks, skips interactive questions, and overrides the $OPAMDEBUG variable. equivalent to setting the environment variable $OPAMSAFE.
  • --solver=CMD β€” picks the CUDF solver used for resolving package installation problems 🧩. this is either a predefined solver (this version of opam supports builtin-mccs+lp(), builtin-mccs+glpk, builtin-dummy-z3-solver, builtin-0install, aspcud, mccs, aspcud-old, packup), or a custom command containing the variables %{input}%, %{output}%, %{criteria}%, and optionally %{timeout}%. equivalent to setting $OPAMEXTERNALSOLVER.
  • --strict β€” fails whenever an error turns up in a package definition or a configuration file. the default is to keep going silently if possible 🀫.
  • --switch=SWITCH β€” uses SWITCH as the current compiler switch. equivalent to setting $OPAMSWITCH to SWITCH.
  • --use-internal-solver β€” disables any external solver and uses the built-in one instead (this requires that opam was compiled with a built-in solver ⚠️). equivalent to setting $OPAMNOASPCUD or $OPAMUSEINTERNALSOLVER.
  • -v, --verbose β€” be more verbose πŸ—£οΈ. one -v shows all package commands; repeat it to also display commands called internally (like tar, curl, patch, etc.). repeating it n times is equivalent to setting $OPAMVERBOSE to "n".
  • --version β€” shows version information.
  • -w, --working-dir β€” whenever opam updates packages that are bound to a local, version-controlled directory, this updates to the current working state of their source instead of the last committed state, or the ref they're pointing to. since the source directory gets copied as it is, if it isn't clean it may result in an opam build failure 😬. this only affects packages explicitly listed on the command-line. can also be set with $OPAMWORKINGDIR.
  • -y, --yes β€” answers yes to all opam yes/no questions without prompting. see also --confirm-level. equivalent to setting $OPAMYES to "true" πŸ’–

🌸 ENVIRONMENT 🌸

okay bestie, this is the part where opam reads your ~vibes~ from the environment πŸ’… opam makes use of the environment variables listed here, and yes, naming is all-caps-and-no-underscores, that's just the brand.

quick rules for the boolean girlies: set it to 0, no, false, or the empty string to disable it, and 1, yes or true to enable it. that's it, that's the whole vibe check βœ…

  • OPAMALLPARENS β€” surround all filters with parenthesis.
  • OPAMASSUMEDEPEXTS β€” see the option --assume-depexts.
  • OPAMAUTOANSWER β€” internal use only. not for us, bestie πŸ™ˆ
  • OPAMAUTOREMOVE β€” see the remove option --auto-remove.
  • OPAMBESTEFFORT β€” see the option --best-effort.
  • OPAMBESTEFFORTPREFIXCRITERIA β€” sets the string that must be prepended to the criteria when the --best-effort option is set, and it's expected to maximise the opam-query property in the solution.
  • OPAMBUILDDOC β€” removed in 2.1. she's gone, we don't talk about her πŸ’€
  • OPAMBUILDTEST β€” removed in 2.1.
  • OPAMCLI β€” see the option `--cli'.
  • OPAMCOLOR β€” when set to always or never, sets a default value for the --color option.
  • OPAMCONFIRMLEVEL β€” see the option --confirm-level. heads up: OPAMCONFIRMLEVEL has priority over OPAMYES and OPAMNO. she's the main character here πŸ‘‘
  • OPAMCRITERIA β€” specifies user preferences for dependency solving. the default value depends on the solver version, so use config report to know the current setting. see also option --criteria.
  • OPAMCUDFFILE β€” save the cudf graph to file-actions-explicit.dot.
  • OPAMCUDFTRIM β€” controls the filtering of unrelated packages during CUDF preprocessing.
  • OPAMCURL β€” can be used to select a given 'curl' program. see OPAMFETCH for more options.
  • OPAMDEBUG β€” see options --debug and --debug-level.
  • OPAMDEBUGSECTIONS β€” if set, limits debug messages to the space-separated list of sections. sections can optionally have a specific debug level (for example, CLIENT:2 or CLIENT CUDF:2), but otherwise use --debug-level.
  • OPAMDIGDEPTH β€” defines how aggressive the lookup for conflicts during CUDF preprocessing is.
  • OPAMDOWNLOADJOBS β€” sets the maximum number of simultaneous downloads.
  • OPAMDROPWORKINGDIR β€” overrides packages previously updated with --working-dir on update. without this variable set, opam would keep them unchanged unless explicitly named on the command-line.
  • OPAMDRYRUN β€” see option --dry-run.
  • OPAMEDITOR β€” sets the editor to use for opam file editing, and it overrides $EDITOR and $VISUAL. she overrules everyone, periodt.
  • OPAMERRLOGLEN β€” sets the number of log lines printed when a sub-process fails. 0 to print all.
  • OPAMEXTERNALSOLVER β€” see option --solver.
  • OPAMFAKE β€” see option --fake.
  • OPAMFETCH β€” specifies how to download files: either wget, curl or a custom command where variables %{url}%, %{out}%, %{retry}%, %{compress}% and %{checksum}% will be replaced. overrides the 'download-command' value from the main config file.
  • OPAMFIXUPCRITERIA β€” same as OPAMUPGRADECRITERIA, but specific to fixup and reinstall.
  • OPAMIGNOREAVAILABLE β€” see the install option --ignore-available-on.
  • OPAMIGNORECONSTRAINTS β€” see the install option --ignore-constraints-on.
  • OPAMIGNOREPINDEPENDS β€” see option --ignore-pin-depends.
  • OPAMINPLACEBUILD β€” see option --inplace-build.
  • OPAMJOBS β€” sets the maximum number of parallel workers to run.
  • OPAMJSON β€” log json output to the given file (use character % to index the files).
  • OPAMKEEPBUILDDIR β€” see install option --keep-build-dir.
  • OPAMKEEPLOGS β€” tells opam to not remove some temporary command logs and some backups. this skips some finalisers and may also help to get more reliable backtraces.
  • OPAMLOCKED β€” combination of --locked and --lock-suffix options.
  • OPAMLOGS β€” logdir sets log directory, default is a temporary directory in /tmp.
  • OPAMMAKECMD β€” set the system make command to use.
  • OPAMMERGEOUT β€” merge process outputs, stderr on stdout.
  • OPAMNO β€” answer no to any question asked, see options --no and --confirm-level. OPAMNO is ignored if either OPAMCONFIRMLEVEL or OPAMYES is set. sad for her but rules are rules βœ‹
  • OPAMNOAGGREGATE β€” with opam admin check, don't aggregate packages.
  • OPAMNOASPCUD β€” Deprecated. we said what we said 🫠
  • OPAMNOAUTOUPGRADE β€” disables automatic internal upgrade of repositories in an earlier format to the current one, on 'update' or 'init'.
  • OPAMNOCHECKSUMS β€” enables option --no-checksums when available.
  • OPAMNODEPEXTS β€” disables system dependencies handling, see option --no-depexts.
  • OPAMNOENVNOTICE β€” Internal.
  • OPAMNOSELFUPGRADE β€” see option --no-self-upgrade.
  • OPAMPINKINDAUTO β€” sets whether version control systems should be detected when pinning to a local path. enabled by default since 1.3.0.
  • OPAMPRECISETRACKING β€” fine grain tracking of directories.
  • OPAMPREPRO β€” set this to false to disable CUDF preprocessing. less efficient, but might help debugging solver issue.
  • OPAMREPOSITORYTARRING β€” internally store all non-vcs repositories as tar.gz files (by default, http repositories are stored as archive). this can be much faster on filesystems that don't cope well with scanning large trees. all operation are done in-memory, no I/O for scanning the repository. lowkey genius ngl ✨
  • OPAMREQUIRECHECKSUMS β€” enables option --require-checksums when available (e.g. for opam install).
  • OPAMRETRIES β€” sets the number of tries before failing downloads.
  • OPAMREUSEBUILDDIR β€” see option --reuse-build-dir.
  • OPAMROOT β€” see option --root. this is automatically set by opam env --root=DIR --set-root.
  • OPAMROOTISOK β€” don't complain when running as root.
  • OPAMSAFE β€” see option --safe.
  • OPAMSHOW β€” see option --show.
  • OPAMSKIPUPDATE β€” see option --skip-updates.
  • OPAMSKIPVERSIONCHECKS β€” bypasses some version checks. unsafe, for compatibility testing only. bestie please, only for science πŸ§ͺ
  • OPAMSOLVERALLOWSUBOPTIMAL β€” (default true) 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. if true, opam willcontinue with a warning, if false a timeout is an error. currently only the builtin-z3 backend handles this degraded case.
  • OPAMSOLVERTIMEOUT β€” change the time allowance of the solver. default is 60.0, set to 0 for unlimited. note that all solvers may not support this option.
  • OPAMSOLVERTOLERANCE β€” changes the tolerance towards the solver choosing an unoptimized solution (i.e. might pull outdated packages). typical values range from 0.0 (best solution known to the solver) to 1.0 (unoptimized solution). default is 0.0. this option is useful in case the solver can't find a solution in a reasonable time (see $OPAMSOLVERTIMEOUT). note that all solvers may not support this option.
  • OPAMSTATS β€” Removed in 2.4. πŸͺ¦
  • OPAMSTATUSLINE β€” display a dynamic status line showing what's currently going on on the terminal. (one of one of always, never or auto)
  • OPAMSTRICT β€” fail on inconsistencies (file reading, switch import, etc.).
  • OPAMSWITCH β€” see option --switch. automatically set by opam env --switch=SWITCH --set-switch.
  • OPAMUNLOCKBASE β€” see install option --unlock-base.
  • OPAMUPGRADECRITERIA β€” specifies user preferences for dependency solving when performing an upgrade. overrides OPAMCRITERIA in upgrades if both are set. see also option --criteria.
  • OPAMUSEINTERNALSOLVER β€” see option --use-internal-solver.
  • OPAMUSEOPENSSL β€” Removed in 2.2.
  • OPAMUTF8 β€” use UTF8 characters in output (one of one of always, never or auto). by default auto, which is determined from the locale). πŸ¦‹
  • OPAMUTF8MSGS β€” use extended UTF8 characters (camels) in opam messages. implies OPAMUTF8. this is set by default on macOS only. camels!!! iconic πŸͺ
  • OPAMVALIDATIONHOOK β€” if set, uses the %{hook}% command to validate an opam repository update.
  • OPAMVERBOSE β€” see option --verbose.
  • OPAMVERBOSEON β€” see option --verbose-on.
  • OPAMVERSIONLAGPOWER β€” do not use. that's the whole description. do not use. πŸ™…β€β™€οΈ
  • OPAMWITHDEVSETUP β€” see install option --with-dev-setup.
  • OPAMWITHDOC β€” see install option --with-doc.
  • OPAMWITHTEST β€” see install option --with-test.
  • OPAMWORKINGDIR β€” see option --working-dir.
  • OPAMYES β€” see options --yes and --confirm-level. OPAMYES has priority over OPAMNO and is ignored if OPAMCONFIRMLEVEL is set. she's the queen bee of saying yes πŸ’–
  • OPAMVAR_var β€” overrides the contents of the variable var when substituting %{var}% strings in opam files.
  • OPAMVAR_package_var β€” overrides the contents of the variable package:var when substituting %{package:var}% strings in opam files.

☁️ CLI VERSION ☁️

okay so this is the section that future-proofs your whole setup and honestly it's giving responsible queen ✨

all scripts and programmatic invocations of opam should use --cli in order to ensure that they work seamlessly with future versions of the opam client. additionally, blog posts or other documentation can benefit, as it prevents information from becoming stale. no more ✨outdated tutorial energy✨ in your life.

although opam only supports roots (~/.opam/) for the current version, it does provide backwards compatibility for its command-line interface.

since CLI version support was only added in opam 2.1, use OPAMCLI to select 2.0 support (as opam 2.0 will just ignore it), and --cli=2.1 for 2.1 (or later) versions, since an environment variable controlling the parsing of syntax is brittle. to this end, opam displays a warning if OPAMCLI specifies a valid version other than 2.0, and also if --cli=2.0 is specified.

the command-line version is selected by using the --cli option or the OPAMCLI environment variable. --cli may be specified morethan once, where the last instance takes precedence. OPAMCLI is only inspected if --cli is not given.

lowkey the whole thing is: say --cli out loud in your scripts, bestie, and future-you will be obsessed with present-you 🫢

πŸ’… EXIT STATUS πŸ’…

ok so before we get into the numbers, there's one lil exception and it's giving main character energy: the exec command does not play by these rules. It returns 127 if the command wasn't found or couldn't be executed, and otherwise it returns the command's own exit value. periodt.

Now the codes, bestie:

  • 0 β€” Success πŸŽ‰ or true for boolean queries.
  • 1 β€” False. Comes back when a boolean return value is expected, like when you're running with --check, or for queries like opam lint.
  • 2 β€” Bad command-line arguments, or command-line arguments pointing to an invalid context (e.g. a file that isn't in the format we expected). 🫠
  • 5 β€” Not found. You asked for something (package, version, repository, etc.) and it just… wasn't there. πŸ’€
  • 10 β€” Aborted. The operation needed confirmation and you didn't give it.
  • 15 β€” Couldn't acquire the locks required for the operation. πŸ”’
  • 20 β€” There's literally no solution to the user request. This happens when, say, you try to install two packages that hate each other.
  • 30 β€” Error in package definition, or other metadata files. Using --strict raises this error more often. 😭
  • 31 β€” Package script error. Some package operations were unsuccessful. Could be an error in the packages, or an incompatibility with your system. This can be a partial error.
  • 40 β€” Sync error. Couldn't fetch some remotes from the network. Also can be a partial error.
  • 50 β€” Configuration error. Opam or your system config doesn't allow the operation and needs fixing.
  • 60 β€” Solver failure. The solver failed to return a sound answer. Could be a broken external solver, or an error in solver configuration.
  • 99 β€” Internal error. Something went wrong, most likely a bug in opam itself. πŸ™ˆ
  • 130 β€” User interrupt. SIGINT was received, generally because the user pressed Ctrl+C.
  • 0 β€” on success.
  • 123 β€” on indiscriminate errors reported on standard error.
  • 124 β€” on command line parsing errors.
  • 125 β€” on unexpected internal errors (bugs).
no cap, that list really does have 0 in it twice, and 123, 124, 125 sitting right at the bottom. we don't make the rules, we just report them faithfully. ✨

πŸ“š FURTHER DOCUMENTATION πŸ“š

See https://opam.ocaml.org/doc. that's it, that's the link, go read, it's giving well-documented queen πŸ’–


πŸ‘‘ AUTHORS πŸ‘‘

the icons who made this happen, the literal founding mothers and fathers of your favourite package manager:

  • David Allsopp <david@tarides.com>
  • Vincent Bernardoff <vb@luminar.eu.org>
  • Raja Boujbel <raja.boujbel@ocamlpro.com>
  • Kate Deplaix <kit-ty-kate@exn.st>
  • Roberto Di Cosmo <roberto@dicosmo.org>
  • Thomas Gazagnaire <thomas@gazagnaire.org>
  • Louis Gesbert <louis.gesbert@ocamlpro.com>
  • Fabrice Le Fessant <Fabrice.Le_fessant@inria.fr>
  • Anil Madhavapeddy <anil@recoil.org>
  • Guillem Rieu <guillem.rieu@ocamlpro.com>
  • Ralf Treinen <ralf.treinen@pps.jussieu.fr>
  • Frederic Tuong <tuong@users.gforge.inria.fr>

periodt. absolute legends, every single one. πŸŽ€


🌈 SEE ALSO 🌈

iya, iykyk πŸ¦‹


πŸ› BUGS πŸ›

found something cursed? Check bug reports at https://github.com/ocaml/opam/issues. they're waiting for you bestie, go file it 🫢


okay that's the whole page!! this was Opam 2.6.1, from the OPAM-UNPIN(1) manual page β€” go forth and unpin responsibly, mwah πŸ’…βœ¨πŸŒΈ

πŸ“¦ where this page comes from