[ANN] opam 2.1.0!

We are happy to announce two opam releases: the freshly new 2.1.0 & the LTS support 2.0.9.

What’s new in opam 2.1.0?

  • Integration of system dependencies (formerly the opam-depext plugin), increasing their reliability as it integrates the solving step
  • Creation of lock files for reproducible installations (formerly the opam-lock plugin)
  • Switch invariants, replacing the “base packages” in opam 2.0 and allowing for easier compiler upgrades
  • Improved options configuration (see the new option and expanded var sub-commands)
  • CLI versioning, allowing cleaner deprecations for opam now and also improvements to semantics in future without breaking backwards-compatibility
  • opam root readability by newer and older versions, even if the format changed
  • Performance improvements to opam-update, conflict messages, and many other areas

You’ll find these features presentation in the blog post ; and for a full complete you can take a look pre-releases changelogs.

What’s in 2.0.9

This 2.0.9 version contains back-ported fixes, you can find more information in this blog post, especially for fish users & sandbox updates.

Tremendous thanks to all involved people, all those who’ve tested, re-tested, tested again, given feedback, commented on issues, tested, tested, tested again…!

The opam team :dromedary_camel:


Many congratulations and thanks to the opam development team for their hard work on this release!

We instigated online development meetings way back in April 2020 as the pandemic hit, and the first one was about starting the opam 2.1 release cycle. The interested reader may want to flick through the remainder of the minutes to see just how much effort it has been over the past 16 months to do a seamless upgrade experience from opam 2.0. Future releases aim to use the groundwork laid in opam 2.1 for more frequent milestones :wink:


Great work everyone! opam 2.1 is a great release, glad to see it officially available! :tada: :tada: :tada:


Does this mean ocaml is itself an opam package?

Yes, this has been the case for a long time, since opam 2.0 in fact.
e.g. see the ocaml-base-compiler package


I’ve just upgraded MacPorts, so Mac users on MacPorts should see opam 2.1.0 as soon as the servers have synchronized.

1 Like