opam

OCaml Package Manager. Manage OCaml compilers, tools and libraries. More information: <https://opam.ocaml.org/>.

Install

All systems
curl cmd.cat/opam.sh
Debian Debian
apt-get install opam
Ubuntu
apt-get install opam
Alpine
apk add opam
Arch Arch Linux
pacman -S opam
image/svg+xml Kali Linux
apt-get install opam
Fedora
dnf install opam
Windows (WSL2)
sudo apt-get update sudo apt-get install opam
OS X
brew install opam
Raspbian
apt-get install opam
Docker
docker run cmd.cat/opam opam powered by Commando

OCaml Package Manager. Manage OCaml compilers, tools and libraries. More information: <https://opam.ocaml.org/>.

  • Initialize opam for first use:
    opam init
  • Search for packages:
    opam search query
  • Install a package and all of its dependencies:
    opam install package
  • Display detailed information about a package:
    opam show package
  • List all installed packages:
    opam list
  • Update the local package database:
    opam update
  • Upgrade all installed packages:
    opam upgrade
  • Display all commands:
    opam help

© tl;dr; authors and contributors