2016-07-30 02:56:33 +02:00
|
|
|
opam - OCaml Package Manager
|
|
|
|
|
2016-11-14 20:49:42 +01:00
|
|
|
OPAM is a source-based package manager for OCaml. It supports
|
|
|
|
multiple simultaneous compiler installations, flexible package
|
|
|
|
constraints, and a Git-friendly development workflow.
|
2016-07-30 02:56:33 +02:00
|
|
|
|
|
|
|
Managing your OCaml installation can be as simple as:
|
|
|
|
|
2022-02-23 21:29:43 +01:00
|
|
|
opam list -a # List the available packages
|
|
|
|
opam install lwt # Install LWT
|
|
|
|
opam update # Update the package list
|
2019-10-07 09:42:28 +02:00
|
|
|
...
|
2022-02-23 21:29:43 +01:00
|
|
|
opam upgrade # Upgrade installed packages to their latest version
|
2016-07-30 02:56:33 +02:00
|
|
|
|
|
|
|
|
2018-11-22 22:32:26 +01:00
|
|
|
It has to be initialised. To do it, you can use the following command:
|
2019-10-07 09:42:28 +02:00
|
|
|
|
|
|
|
opam init
|
2016-07-30 02:56:33 +02:00
|
|
|
|
2018-11-22 22:32:26 +01:00
|
|
|
It is not recommended to run opam as root.
|
|
|
|
Apparently it rather installs per-user packages.
|