Upgrading to a new version

If you are already using opam 2 (check with opam --version), upgrade with the two following commands:

opam update
opam upgrade

From opam version 1 to opam version 2

If you have already installed opam with version 1, install opam version 2 with instruction steps 2 and 3 on Installation and run the 2 commands above.