# \[ANN\] opam 2.2.0 rc1 release

**URL:** <https://discuss.ocaml.org/t/ann-opam-2-2-0-rc1-release/14842>\
**Category:** Ecosystem\
**Tags:** opam, announce\
**Created:** [June 24, 2024, 8:30am UTC](https://discuss.ocaml.org/t/ann-opam-2-2-0-rc1-release/14842 "2024-06-24T08:30:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjbou](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/rjbou/32/1124_2.png) [@rjbou](https://discuss.ocaml.org/u/rjbou)\
**Post date:** [June 24, 2024, 8:30am UTC](https://discuss.ocaml.org/t/ann-opam-2-2-0-rc1-release/14842/1 "2024-06-24T08:30:19Z")

</div>

Hi everyone,

We’re once again very excited to announce this first release candidate (and hopefully only) for opam 2.2.0.

## What’s new in this rc?

- Fix `opam upgrade` wanting to keep rebuilding the compiler (as now it contains an `x-env-path-rewrite` field)
- Provide defaults so `opam init -y` no longer asks questions on Windows
- Fix `OpamConsole.menu` when there are more than 9 options (can happen on Windows)
- A couple more fixes and general improvements

📖 You can read our [blog post](https://opam.ocaml.org/blog/opam-2-2-0-rc1/) for more information about these changes and more, and for even more details you can take a look at the [release note](https://github.com/ocaml/opam/releases/tag/2.2.0-rc1) or the [changelog](https://github.com/ocaml/opam/blob/2.2.0-rc1/CHANGES).

## Windows issues

Configuration of Windows is tricky, so please don’t be too disheartened if things don’t work instantly. If something doesn’t work first time, [please do report it](https://github.com/ocaml/opam/issues), even if you manage to find a way to workaround it. If opam didn’t elegantly tell you what was wrong, then it’s a bug and we’d love to hear about it, rather than ending up with a series of workarounds flying around. It’s no problem at all for us to receive a bug report which turns out to be user error - we’d far rather that than not hear bugs which are opam’s error! 🙀

## How to upgrade

For Unix systems

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

```

or from PowerShell for Windows systems

```auto
Invoke-Expression "& { $(Invoke-RestMethod https://raw.githubusercontent.com/ocaml/opam/master/shell/install.ps1) }"

```

We’re planning for a final opam 2.2.0 release next week, so please do report any issue you encounter on our [bug-tracker](https://github.com/ocaml/opam/issues).

Happy hacking,  
_\<\> \<\> The opam team \<\> \<\>_ 🐪

---

<div class="post-metadata">

**Author:** ![avsm](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/avsm/32/6_2.png) [@avsm](https://discuss.ocaml.org/u/avsm)\
**Post date:** [June 24, 2024, 12:09pm UTC](https://discuss.ocaml.org/t/ann-opam-2-2-0-rc1-release/14842/2 "2024-06-24T12:09:27Z")

</div>


