OPAM-LIST(1)

πŸ’– opam-list β€” the "who's even in the building" command πŸ’–

okay bestie, welcome to OPAM-LIST(1) from the Opam Manual 🫢 this is the one you pull up when you wanna know what packages exist, what's installed, what's vibing in your switch, all of it.


✨ NAME ✨

opam-list β€” Display the list of available packages. that's it, that's the whole job, and she does it flawlessly πŸ‘‘


🌸 SYNOPSIS 🌸

opam list [--check] [--no-depexts] [--silent] [OPTION]… [PATTERNS]…

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, this command lists selections of opam packages. super simple concept, extremely useful execution πŸ’…

No arguments? She shows you the list of currently installed packages. With pattern arguments? She lists all available packages matching one of those patterns. iconique behaviour honestly ✨

Unless you pass the --short switch, the output format is one package per line, and every line has:

  • the name of the package
  • the installed version, or -- if the package isn't installed
  • a short description

and here's the cute detail β€” in color mode, manually installed packages (as opposed to the ones that got automatically installed because of dependencies) are underlined. the way she distinguishes her faves… we love to see it πŸ˜­πŸ’–

Peep the section PACKAGE SELECTION OPTIONS for all the ways to select which packages get displayed, and OUTPUT FORMAT OPTIONS to customise how the output looks.

For a more detailed description of packages, go see opam show. And for extended search capabilities within the packages' metadata, go see opam search. they're the extended universe besties πŸŽ€


πŸŽ€ ARGUMENTS πŸŽ€

  • PATTERNS β€” package patterns with globs. Unless --search is specified, they match against a NAME or NAME.VERSION 🧚

πŸ”₯ ORDER-SENSIBLE SELECTORS πŸ”₯

okay this is the part where the order you type things in actually matters, no cap. These options are sensible to the order they are given to the command.

For example: --available --latests-only will first list all the available packages, then choose only the latest packages in that set. But --latests-only --available will first list all the latest packages, then only show the ones that are available in that set. same flags, different order, different result. it's giving pipeline energy 🌈

  • -a, --available β€” List only packages that are available on the current system
  • -A, --all β€” Include all, even uninstalled or unavailable packages. everyone's invited 🫢
  • --base β€” Removed in 2.1, use --invariant instead. she's retired bestie, don't try to hit her up πŸ’€
  • -i, --installed β€” List installed packages only. This is the default when no further arguments are supplied
  • --installable β€” List only packages that can be installed on the current switch (this calls the solver and may be more costly; a package depending on an unavailable package may be available, but is never installable). pricey but thorough ✨
  • --invariant β€” List only the immutable base of the current switch (i.e. invariant packages)
  • --latests-only β€” List only the latest version of each package.
  • --pinned β€” List only the pinned packages πŸ“Œ
  • --roots, --installed-roots β€” List only packages that were explicitly installed, excluding the ones installed as dependencies. the OGs, the ones you actually chose πŸ₯Ή

πŸ‘‘ PACKAGE SELECTION OPTIONS πŸ‘‘

these options will always be given to the command in the same order, regardless of the order you typed them in. no order-shenanigans down here, she's stable πŸ’…

  • --coinstallable-with=PACKAGES β€” Only list packages that are compatible with all of PACKAGES. no drama, everybody gets along 🫢
  • --conflicts-with=PACKAGES β€” List packages that have declared conflicts with at least one of the given list. This includes conflicts defined from the packages in the list, from the other package, or by a common conflict-class: field. messy, but documented πŸ’€
  • --depends-on=PACKAGES β€” List only packages that depend on one of (comma-separated) PACKAGES.
  • --depopts β€” Include optional dependencies in dependency requests.
  • --dev β€” Include development packages in dependencies.
  • --field-match=FIELD:PATTERN β€” Filter packages with a match for PATTERN on the given FIELD
  • --has-flag=FLAG β€” Only include packages which have the given flag set. Package flags are one of: light-uninstall verbose plugin compiler conf 🚩
  • --has-tag=TAG β€” Only includes packages which have the given tag set
  • --no-switch β€” List what is available from the repositories, without consideration for the current (or any other) switch (installed or pinned packages, etc.). switch? never heard of her πŸ™ˆ
  • --nobuild β€” Exclude build dependencies (they are included by default).
  • --or β€” Instead of selecting packages that match all the criteria, select packages that match any of them. inclusivity mode ✨
  • --owns-file=FILE β€” Finds installed packages responsible for installing the given file πŸ•΅οΈ
  • --post β€” Include dependencies tagged as post.
  • --recursive β€” With --depends-on and --required-by, display all transitive dependencies rather than just direct dependencies. go deep or go home πŸ¦‹
  • --repos=REPOS β€” Include only packages that took their origin from one of the given repositories (unless no-switch is also specified, this excludes pinned packages).
  • --required-by=PACKAGES β€” List only the dependencies of (comma-separated) PACKAGES.
  • --resolve=PACKAGES β€” Restrict to a solution to install (comma-separated) PACKAGES, i.e. a consistent set of packages including those. This is subtly different from --required-by --recursive, which is more predictable and can't fail, but lists all dependencies independently without ensuring consistency. Without --installed, the answer is self-contained and independent of the current installation. With --installed, it's computed from the set of currently installed packages. --no-switch further makes the solution independent from the currently pinned packages, architecture, and compiler version. The combination with --depopts is not supported. 🚫 big brain option, read it twice fr fr
  • --search β€” Match PATTERNS against the full descriptions of packages, and require all of them to match, instead of requiring at least one to match against package names (unless --or is also specified).
  • -t, --with-test, --test β€” Include test-only dependencies.
  • --with-dev-setup β€” Include developer only dependencies.
  • --with-doc, --doc β€” Include doc-only dependencies. πŸ“š

🌈 OUTPUT FORMAT OPTIONS 🌈

  • --columns=COLUMNS β€” Select the columns to display among: name, version, package, synopsis, synopsis-or-target, description, <field>:, installed-version, pin, source-hash, opam-file, all-installed-versions, available-versions, all-versions, repository, installed-files, vc-ref, depexts. The special form <field>: (field name followed by colon, e.g., license:) selects an arbitrary field. The default is name when --short is present and name, installed-version, synopsis-or-target otherwise. pick your own adventure bestie πŸ’…
  • -e, --external, --depexts β€” Instead of displaying the packages, display their external dependencies that are associated with the current system. This excludes other display options. Rather than using this directly, you should probably head for the depext plugin, that will use your system package management system to handle the installation of the dependencies. Run opam depext. πŸ‘€
  • --normalise β€” Print the values of opam fields normalised
  • -S, --sort β€” Sort the packages in dependency order (i.e. an order in which they could be individually installed.) perfect lineup, no chaos ✨
  • -s, --short β€” Don't print a header, and sets the default columns to name only. If you need package versions included, use --columns=package instead
  • --separator=STRING (absent= ) β€” Set the column-separator string
  • -V, --all-versions β€” Normally, when multiple versions of a package match, only one is shown in the output (the installed one, the pinned-to one, or, failing that, the highest one available or the highest one). This flag disables this behaviour and shows all matching versions. This also changes the default display format to include package versions instead of just package names (including when --short is set). This is automatically turned on when a single non-pattern package name is provided on the command-line. show me EVERYONE πŸ’–
  • --vars=[VAR=STR,...] β€” Define the given variable bindings. Typically useful with --external to override the values for arch, os, os-distribution, os-version, os-family.
  • --wrap β€” Wrap long lines, the default being to truncate when displaying on a terminal, or to keep as is otherwise

πŸ’œ OPTIONS πŸ’œ

  • --check β€” Don't write anything in the output, exit with return code 0 if the list is not empty, 1 otherwise. silent but opinionated, we stan πŸŽ€
  • --no-depexts β€” Disable external dependencies handling for the query. This can be used to include packages that are marked as unavailable because of an unavailable system dependency.
  • --silent β€” Removed in 2.1, use --check instead. another retired queen, pls stop calling her πŸ’€

✨ COMMON OPTIONS ✨

These are the universal settings, bestie β€” the ones that work across all the commands. No cap. 🫢

  • --best-effort β€” If opam can't install every single package you asked for, it doesn't just give up 😀: it tries to install as many as possible. But heads up: not every external solver supports this (recent versions of aspcud or mccs should). Equivalent to setting the $OPAMBESTEFFORT environment variable.
  • --cli=MAJOR.MINOR (absent=2.6) β€” Use the command-line interface syntax and semantics of MAJOR.MINOR. This is meant for anything persistent you do with opam β€” scripts, blog posts, etc. β€” so that any version of opam in the same MAJOR series behaves like the specified MINOR release. The flag was not available in opam 2.0, so if you want the 2.0 CLI, set the OPAMCLI environment variable to 2.0 instead of using this parameter.
  • --color=WHEN β€” Colorize the output. WHEN has to be one of always, never or auto. 🌈
  • --confirm-level=LEVEL β€” Set the confirmation level. LEVEL must be one of ask, no, yes or unsafe-yes. You can pass this more than once. If --yes or --no are also given, the value of the last --confirm-level is what counts. Equivalent to setting $OPAMCONFIRMLEVEL.
  • --criteria=CRITERIA β€” Specify your preferences for dependency solving, just for this run. It overrides $OPAMCRITERIA, $OPAMFIXUPCRITERIA and $OPAMUPGRADECRITERIA. For the details on the supported language and the external solvers available, see http://opam.ocaml.org/doc/External_solvers.html. A general guide to using solver preferences lives at http://www.dicosmo.org/Articles/usercriteria.pdf. πŸ“š
  • --cudf=FILENAME β€” Debug option: save the CUDF requests sent to the solver to FILENAME-<n>.cudf, where <n> is the n-th call to the solver during the opam run. πŸ› οΈ
  • --debug β€” Print debug message to stderr. Equivalent to setting $OPAMDEBUG to "true". πŸ›
  • --debug-level=LEVEL β€” Like --debug, but you get to specify the debug level (--debug sets it to 1). Equivalent to setting $OPAMDEBUG to a positive integer.
  • --git-version β€” Print the git version of opam, if set (i.e. you are using a development version), and exit. πŸ‘‘
  • --help[=FMT] (default=auto) β€” Show this help in format FMT. The value FMT must be one of auto, pager, groff or plain. With auto, the format is pager or plain whenever the TERM env var is dumb or undefined. πŸ’–
  • --ignore-pin-depends β€” Ignore extra pins required by packages that get pinned, whether that happens manually through opam pin or through opam install DIR. Equivalent to setting IGNOREPINDEPENDS=true.
  • --json=FILENAME β€” Save the results of the opam run in 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 β€” Answer no to all opam yes/no questions without prompting. See also --confirm-level. Equivalent to setting $OPAMNO to "true".
  • --no-aspcud β€” Removed in 2.1. πŸ’€
  • --no-auto-upgrade β€” When configuring or updating a repository that was written for an earlier opam version (1.2), opam internally converts it to the current format. This disables that behaviour. Note that repositories should define their format version in a 'repo' file at their root, or they'll be assumed to be in the older format. It's preferable, in any case, to upgrade repositories manually using opam admin upgrade [--mirror URL] when possible. 🧚
  • --no-self-upgrade β€” Opam will replace itself with a newer binary found at OPAMROOT/opam if present. This disables that behaviour.
  • -q, --quiet β€” Disables --verbose. 🀫
  • --root=ROOT β€” Use ROOT as the current root path. Equivalent to setting $OPAMROOT to ROOT.
  • --safe, --readonly β€” Make sure nothing will be automatically updated or rewritten. Useful for calling from completion scripts, for example. It will 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 β€” Specify the CUDF solver to use 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 that should contain the variables %{input}%, %{output}%, %{criteria}%, and optionally %{timeout}%. Equivalent to setting $OPAMEXTERNALSOLVER. πŸ”₯
  • --strict β€” Fail whenever an error is found in a package definition or a configuration file. The default is to continue silently if possible. 🚨
  • --switch=SWITCH β€” Use SWITCH as the current compiler switch. Equivalent to setting $OPAMSWITCH to SWITCH.
  • --use-internal-solver β€” Disable any external solver and use the built-in one. (This requires that opam has been 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 (e.g. tar, curl, patch etc.). Repeating n times is equivalent to setting $OPAMVERBOSE to "n". πŸ“£
  • --version β€” Show version information.
  • -w, --working-dir β€” Whenever updating packages that are bound to a local, version-controlled directory, update 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 is 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. It can also be set with $OPAMWORKINGDIR. πŸ› οΈ
  • -y, --yes β€” Answer yes to all opam yes/no questions without prompting. See also --confirm-level. Equivalent to setting $OPAMYES to "true".

πŸ’– THE ENVIRONMENT VARIABLES πŸ’–

okok so opam reads a whole list of environment variables, bestie. And here's the rules for the boolean ones: set them to "0", "no", "false" or the empty string to disable them, and "1", "yes" or "true" to enable them. That's it, that's the whole vibe. 🫢

  • OPAMALLPARENS β€” surround all filters with parenthesis.
  • OPAMASSUMEDEPEXTS β€” see option --assume-depexts.
  • OPAMAUTOANSWER β€” internal use only. (no thoughts, head empty, don't touch πŸ’…)
  • OPAMAUTOREMOVE β€” see remove option --auto-remove.
  • OPAMBESTEFFORT β€” see option --best-effort.
  • OPAMBESTEFFORTPREFIXCRITERIA β€” sets the string that must be prepended to the criteria when the --best-effort option is set, and is expected to maximise the opam-query property in the solution.
  • OPAMBUILDDOC β€” removed in 2.1. ⚰️ rest in peace queen
  • OPAMBUILDTEST β€” removed in 2.1. ⚰️
  • OPAMCLI β€” see option --cli.
  • OPAMCOLOR β€” when set to always or never, sets a default value for the --color option.
  • OPAMCONFIRMLEVEL β€” see option --confirm-level. OPAMCONFIRMLEVEL has priority over OPAMYES and OPAMNO.
  • OPAMCRITERIA β€” specifies user preferences for dependency solving. The default value depends on the solver version, 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, overrides $EDITOR and $VISUAL.
  • 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 install option --ignore-available-on.
  • OPAMIGNORECONSTRAINTS β€” see 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.
  • OPAMNOAGGREGATE β€” with opam admin check, don't aggregate packages.
  • OPAMNOASPCUD β€” deprecated. πŸ™ˆ
  • 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.
  • 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.
  • 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 will continue 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 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 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.
  • 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. 🚫 bestie I'm begging you
  • 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.
  • 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 this part is literally the most responsible-girlboss section of the whole page, listen up πŸ“£

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. like, future-proofing? we love to see it. ✨

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 more than once, where the last instance takes precedence. OPAMCLI is only inspected if --cli is not given.

🫢 tl;dr for the besties: pass --cli, or set OPAMCLI, and last flag wins. opam will side-eye you with a warning in a couple of edge cases, but it's not mad, just disappointed. 😭

✨ EXIT STATUS ✨

Okay bestie, listen up, this is the part where opam tells you exactly what it's feeling via numbers. πŸ’…

Exception alert!! The exec command is the rebel here: it returns 127 if the command wasn't found or couldn't be executed, and otherwise it just returns the command's own exit value. Everyone else plays by the rules below. πŸ™ˆ
  • 0 β€” Slay! Success, or true for boolean queries. πŸŽ€
  • 1 β€” False. This one shows up 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 at an invalid context (think: a file that doesn't follow the expected format). Not it. 😭
  • 5 β€” Not found. You asked for something β€” a package, a version, a repository, etc. β€” that couldn't be found. She's just not there, bestie. πŸ¦‹
  • 10 β€” Aborted. The operation needed confirmation and you didn't give it. No consent, no operation. βœ‹
  • 15 β€” Could not acquire the locks required for the operation. The locks were locked. πŸ”’
  • 20 β€” There is no solution to the user request. This can be caused by asking to install two incompatible packages, for example. Math said no. πŸ’€
  • 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. This may be an error in the packages or an incompatibility with your system. This can be a partial error.
  • 40 β€” Sync error. Could not fetch some remotes from the network. This can be a partial error too. The wifi ghosted us. 🌐
  • 50 β€” Configuration error. Opam or system configuration doesn't allow the operation, and it needs fixing. The vibe is off and it's fixable. 🧚
  • 60 β€” Solver failure. The solver failed to return a sound answer. It can be due to a broken external solver, or an error in solver configuration. 🫠
  • 99 β€” Internal error. Something went wrong, likely due to a bug in opam itself. Blame the software, not yourself. πŸ’–
  • 130 β€” User interrupt. SIGINT was received, generally due to the user pressing 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).

πŸ“š FURTHER DOCUMENTATION πŸ“š

See https://opam.ocaml.org/doc. That's the spot for the deep lore, iykyk. 🌈


πŸ‘‘ AUTHORS πŸ‘‘

Look at this absolute roster of main characters who built the thing you're using right now. Respect the legends:

  • 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>

πŸ” SEE ALSO πŸ”

  • opam(1) β€” yeah, the whole family tree starts there. 🫢

πŸ› BUGS πŸ›

Found something cursed? Check bug reports at https://github.com/ocaml/opam/issues. Reporting is a love language, fr fr. πŸ’œ


And that's the whole page, bestie β€” this little manual is from Opam 2.6.1 and it's dated OPAM-LIST(1). Go forth and list your packages with confidence. You ate. No cap. πŸ’…βœ¨πŸŒΈ

πŸ“¦ where this page comes from