Is there a way to run opam init in a non-interactive way?
Is it possible to make it silent also, instead of the default babling that I don’t care of?
Also, is it possible to specify explicitly where the dot opam dir should reside (by default: ~/.opam)?
Thanks,
F.
vds
2
Looking at the man page you can make the setup non-interactive with:
-a, --auto-setup
Automatically do a full setup, including adding a line to your
shell init files.
There are a lot of other flags available that might allow you to configure the installation as you need, you can print them using opam init --help
.
Using the var OPAMROOT
or the --root
might allow you to use a different directory ?
1 Like