2019-10-27 16:27:37 +00:00
|
|
|
# opam
|
|
|
|
|
|
|
|
> 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:
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`opam search {{query}}`
|
2019-10-27 16:27:37 +00:00
|
|
|
|
|
|
|
- Install a package and all of its dependencies:
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`opam install {{package}}`
|
2019-10-27 16:27:37 +00:00
|
|
|
|
|
|
|
- Display detailed information about a package:
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`opam show {{package}}`
|
2019-10-27 16:27:37 +00:00
|
|
|
|
|
|
|
- List all installed packages:
|
|
|
|
|
|
|
|
`opam list`
|
|
|
|
|
|
|
|
- Update the local package database:
|
|
|
|
|
|
|
|
`opam update`
|
|
|
|
|
|
|
|
- Upgrade all installed packages:
|
|
|
|
|
|
|
|
`opam upgrade`
|
|
|
|
|
|
|
|
- Display all commands:
|
|
|
|
|
|
|
|
`opam help`
|