What I did to install Coq 8.8.1 with equations 1.1 as a separate profile:
opam switch coq-8.8.1 --alias-of 4.06.1
eval `opam config env`
opam pin add coq 8.8.1
opam pin add coq-equations 1.1+8.8
opam install ott coq-ott
(opam pin -y add coq-equations 1.1+8.8 && opam install -y ott coq-ott)
I lack notes, but you can repeat opam switch profileName --alias-of 4.06.1
more times
with different profileName
and install different package versions.
Sadly this rebuilds Coq each time, even if you build two profiles with the same Coq version but different plugins.
IIRC, I tried to do
opam switch coq-8.8.1-A.A --alias-of coq-8.8.1
, but that seemed unsupported.
References: Manage your Coq projects like a pro - opam: https://blog.zhenzhang.me/2016/09/19/coq-dev.html (stopped working :-(, maybe in some archive?) http://ssr.msr-inria.inria.fr/~gares/www/dest/node/31.html