OPAM is a package manager for OCaml. Managing your OCaml installation can be as simple as:
opam install lwt # Install lwt opam switch 4.00.0 # Switch to OCaml 4.00.0 environment opam pin lwt 2.3.2 # Mark version 2.3.2 to be used in place of the latest one ...