# opam

> The source-based package manager for OCaml

Source: https://talira.ai/catalog/opam-3fdgdx4q
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / package managers](https://talira.ai/categories/developer-tools/package-managers)
- Licence: LGPL-2.1-only WITH OCaml-LGPL-linking-exception[^4][^5]
- Pricing: Free and open source[^4]
- Free tier: yes[^4]
- Backed by: [OCamlPro](https://talira.ai/orgs/ocamlpro.md), [Inria](https://talira.ai/orgs/inria.md)

opam is the source-based package manager for [OCaml](https://talira.ai/catalog/ocaml-r6d5qbvf.md). It installs and upgrades packages from the opam repository (over 4,700 packages), keeps several OCaml compiler versions installed side by side in separate switches, solves flexible version constraints, and supports a Git-friendly development workflow in which a project can be pinned straight from its repository. It began at OCamlPro in 2012, with funding from Jane Street, and is maintained by developers at OCamlPro, Jane Street and others.

## Links

- Website: https://opam.ocaml.org/
- GitHub: https://github.com/ocaml/opam
- Docs: https://opam.ocaml.org/doc/Manual.html

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/opam>[^1]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/opam>[^2]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/opam>[^3]

## Problems it solves

- install OCaml libraries and their dependencies
- keep several OCaml compiler versions on one machine for different projects
- work on an OCaml package straight from its Git repository

## Features

- Installs, updates and upgrades OCaml packages from the opam repository
- Several OCaml compilers installed side by side (switches)
- Flexible package version constraints with a dependency solver
- Pin a package to a Git repository or local directory
- Works with external solvers such as aspcud

## Trust

Overall: 0.64 out of 1.
Signals: maintenance 1.00, adoption 0.63, momentum 0.29, community 0.93, backing 0.30, extensibility 0.00.

- last commit yesterday
- 124 commits in the last 90 days
- latest release 2.6.1 53 days ago
- 1.4k GitHub stars
- 210 contributors
- 644 Homebrew installs in 30 days
- backed by OCamlPro and Inria

## Related

- Works with [OCaml](https://talira.ai/catalog/ocaml-r6d5qbvf.md)

## Alternatives

- [Composer](https://talira.ai/catalog/composer-rk1d8tje.md): A Dependency Manager for PHP
- [remotes](https://talira.ai/catalog/remotes-frq1g7yp.md): Install R packages from GitHub, GitLab, Bitbucket, Bioconductor and git
- [pip](https://talira.ai/catalog/pip-bffjf3ey.md): The package installer for Python
- [vcpkg](https://talira.ai/catalog/vcpkg-qg5mpnz6.md): C/C++ dependency manager from Microsoft for all platforms, build systems and workflows
- [Conda](https://talira.ai/catalog/conda-f8162j5y.md): Package, dependency and environment manager for any language

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 28 Nov 2026)
[^2]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 28 Nov 2026)
[^3]: https://mise-versions.jdx.dev/tools.json (checked 28 Nov 2026)
[^4]: https://github.com/ocaml/opam/blob/master/LICENSE (checked 28 Nov 2026)
[^5]: https://github.com/ocaml/opam/blob/master/src/client/opamMain.ml (checked 28 Nov 2026)
