Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Switch environment in OPAM

Tags:

ocaml

opam

Is this possible to have several development environments, which share the same compiler?

Actually, I want to use 4.00.1+short-types compiler with different set of installed packages, and the possibility to easily switch between these environments. opam switch only allows me to switch between compilers if I didn't miss something.

like image 202
Stas Avatar asked Oct 20 '25 10:10

Stas


1 Answers

I suppose the solution is to create new switches that are aliases of the one you're interested in, using the opam switch install <name> --alias-of <switch> command described in the Usage document.

like image 141
gasche Avatar answered Oct 25 '25 20:10

gasche



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!