My opam version is 2.0.0~beta5.
I don’t know how to install ocaml-4.02.0 with this opam version.
opam switch list-available
doesn’t list anything…
In the past
opam switch 4.02.0
would have done the job.
I have those repositories:
# opam repo
[NOTE] These are the repositories in use by the current switch. Use '--all' to
see all configured repositories.
=-=- Repository configuration for switch default =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
1 https https://opam.ocaml.org/2.0
2 github git+https://github.com/ocaml/opam-repository.git
opam switch list-available
works for me (I’m on rc2, but beta5 worked as well). I usually use opam switch list-available base
though so that it listed the base compiler versions.
~ » opam switch list-available base
# Listing available compilers from repositories: default
# Name # Version # Synopsis
ocaml-base-compiler 3.07 Official 3.07 release
ocaml-base-compiler 3.08.0 Official 3.08.0 release
ocaml-base-compiler 3.08.1 Official 3.08.1 release
ocaml-base-compiler 3.08.2 Official 3.08.2 release
ocaml-base-compiler 3.08.3 Official 3.08.3 release
ocaml-base-compiler 3.08.4 Official 3.08.4 release
ocaml-base-compiler 3.09.0 Official 3.09.0 release
ocaml-base-compiler 3.09.1 Official 3.09.1 release
ocaml-base-compiler 3.09.2 Official 3.09.2 release
ocaml-base-compiler 3.09.3 Official 3.09.3 release
ocaml-base-compiler 3.10.0 Official 3.10.0 release
ocaml-base-compiler 3.10.1 Official 3.10.1 release
ocaml-base-compiler 3.10.2 Official 3.10.2 release
ocaml-base-compiler 3.11.0 Official 3.11.0 release
ocaml-base-compiler 3.11.1 Official 3.11.1 release
ocaml-base-compiler 3.11.2 Official 3.11.2 release
ocaml-base-compiler 3.12.0 Official 3.12.0 release
ocaml-base-compiler 3.12.1 Official 3.12.1 release
ocaml-base-compiler 4.00.0 Official 4.00.0 release
ocaml-base-compiler 4.00.1 Official 4.00.1 release
ocaml-base-compiler 4.01.0 Official 4.01.0 release
ocaml-base-compiler 4.02.0 Official 4.02.0 release
ocaml-base-compiler 4.02.1 Official 4.02.1 release
ocaml-base-compiler 4.02.2 Official 4.02.2 release
ocaml-base-compiler 4.02.3 Official 4.02.3 release
ocaml-base-compiler 4.03.0 Official 4.03.0 release
ocaml-base-compiler 4.04.0 Official 4.04.0 release
ocaml-base-compiler 4.04.1 Official 4.04.1 release
ocaml-base-compiler 4.04.2 Official 4.04.2 release
ocaml-base-compiler 4.05.0 Official 4.05.0 release
ocaml-base-compiler 4.06.0 Official 4.06.0 release
ocaml-base-compiler 4.06.1 Official 4.06.1 release
Installing is done via
opam switch create 4.02.0
1 Like
Ok, I destroyed ~/.opam and did an opam init to fix the problem.
1 Like
Can you show the output of ‘opam repo’?
It still does not work for me.
opam switch -a was working well in previous opam versions…
I don’t change anything on opam repo.
$ opam repo
[NOTE] These are the repositories in use by the current switch. Use '--all' to see all
configured repositories.
<><> Repository configuration for switch default ><><><><><><><><><><><><><><><>
1 default https://opam.ocaml.org/2.0
$ opam repo --all
# Repository # Url # Switches(rank)
default https://opam.ocaml.org/2.0 <default>(1) default(1)
I confirm that for me, with 2.0.0~beta5 on Debian, it does not work