Skip to content

controlling opam installation directories for components #5361

Answered by kit-ty-kate
bchill asked this question in Q&A
Discussion options

You must be logged in to vote

You can do this by simply exporting the following environment variable:

export OPAMROOT=/opt/ocaml

This is mentioned in the manual (https://opam.ocaml.org/doc/Manual.html#opam-root) and in the man-page/--help. If you think of an improvement to make this more clear, feel free to contribute.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rjbou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants