[ANN] opam 2.2.0~beta2

Hi everyone,

We’re very excited to announce this second beta for opam 2.2.0.

What’s new in this beta?

  • Windows support: this beta introduces a bunch of changes necessary to be able to make the default opam-repository support Windows out of the box. We will write a dedicated blog post very soon on this, once we have finalised the PR/branch that you can test.
  • opam-repository scalability: The current draft resolution resulting from the discussion in ocaml/opam-repository#23789 includes the removal of packages from opam-repository. Currently opam can misbehave (in particular on macOS) when exposed to file deletions in repositories due to the use of the system patch command. To fix this, as a stop gap, after many trials and errors, opam now warns when GNU patch is not detected on your system. These changes will make their way to the upcoming opam 2.1.6, in a few weeks.
  • Many regression fixes, performance and general improvements

:open_book: You can read our blog post for more information about these changes and more, and for even more details you can take a look at the release note or the changelog.

How to upgrade

  • For Windows we will write a dedicated blog post to show how to install and use opam on Windows very soon. Stay tuned!

  • On Unix-like systems, to upgrade, simply run:

    bash -c "sh <(curl -fsSL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh) --version 2.2.0~beta2"
    

We’re on the home stretch for the final release of opam 2.2.0, so feel free to report any issue you encounter on our bug-tracker.

Happy hacking,
<> <> The opam team <> <> :camel:

19 Likes

Hi.

For the alpha/beta1 releases there are pre-built Windows binaries.
Is it possible to download the same for 2.2.0~beta2 somewhere?

Thank you.

Not directly at the moment, but a vanilla build of opam 2.2.0 beta2 is available in winget (i.e. winget install opam will give you 2.2.0 beta2 at the moment), thanks to @jbeckford at Diskuv.

Is winget something installed on Windows systems nowadays ? (I couldn’t figure out how to install winget from the website you linked to).

you can install winget through the Microsoft Store linked here

1 Like

It’s also a default part of Windows 11 (maintained through Microsoft Store)

1 Like