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:
|
|
|
|
|
2016-11-14 20:49:42 +01:00
|
|
|
opam list -a # List the available packages
|
|
|
|
opam install lwt # Install LWT
|
|
|
|
opam update # Update the package list
|
2016-07-30 02:56:33 +02:00
|
|
|
...
|
2016-11-14 20:49:42 +01:00
|
|
|
opam upgrade # Upgrade installed packages to their latest version
|
2016-07-30 02:56:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
It has to be initialized. To do it, you can use the following command:
|
|
|
|
opam init
|
|
|
|
|
2016-11-14 20:49:42 +01:00
|
|
|
It is not recommended to run opam as root. Apparently it installs
|
|
|
|
per-user packages.
|