opam
OCaml Package Manager
TLDR
Initialize opam
$ opam init
Install package$ opam install [package]
Search packages$ opam search [query]
Update package list$ opam update
Upgrade packages$ opam upgrade
Create switch$ opam switch create [name] [compiler_version]
SYNOPSIS
opam [command] [options]
DESCRIPTION
opam is the OCaml Package Manager. Manages OCaml libraries and compilers.
The tool handles package installation and dependency resolution. Supports switches.
PARAMETERS
init
Initialize opam.install PACKAGE
Install package.search QUERY
Search packages.update
Update repository.upgrade
Upgrade packages.switch COMMAND
Manage compiler switches.--help
Display help information.
CAVEATS
Requires initialization. Switches isolate environments. Shell configuration needed.
HISTORY
opam was created for OCaml package management with compiler version switching.
