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`
|
|
|
|
|
2024-01-30 04:55:24 +00:00
|
|
|
- Display help:
|
2019-10-27 16:27:37 +00:00
|
|
|
|
|
|
|
`opam help`
|