asdf plugin-add ocaml https://github.com/vic/asdf-ocaml.git
This plugin uses OPAM to install OCaml on your system. You don't need to have a previous opam/ocaml installation for it to work.
opam, and related tools will be available on your path.
# If you need to install a package that produces binaries opam install foo # Be sure to execute reshim afterwards to get them in your path asdf reshim ocaml
Check asdf readme for instructions on how to install & manage versions of OCaml.