# \[ANN\] opam 2.4.0~beta1

**URL:** <https://discuss.ocaml.org/t/ann-opam-2-4-0-beta1/16856>\
**Category:** Ecosystem\
**Tags:** opam, announce\
**Created:** [June 19, 2025, 6:24pm UTC](https://discuss.ocaml.org/t/ann-opam-2-4-0-beta1/16856 "2025-06-19T18:24:27Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![kit-ty-kate](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/kit-ty-kate/32/5953_2.png) [@kit-ty-kate](https://discuss.ocaml.org/u/kit-ty-kate)\
**Post date:** [June 19, 2025, 6:24pm UTC](https://discuss.ocaml.org/t/ann-opam-2-4-0-beta1/16856/1 "2025-06-19T18:24:27Z")

</div>

Hi everyone,

We are happy and relieved to announce the first beta release of opam 2.4.0.

This version is an beta, we invite users to test it to spot previously unnoticed bugs as we head towards the stable release, which hopefully shouldn’t take too long.

## Changes

- 🐲 Fixed a handful of bugs in `opam install --deps-only <local dir>` more visible in 2.4, where some actions would use the local packages’ definition or write to the internal opam state as if they were actually pinned ([#6529](https://github.com/ocaml/opam/issues/6529), [#6532](https://github.com/ocaml/opam/issues/6532), [#6501](https://github.com/ocaml/opam/issues/6501), [#6535](https://github.com/ocaml/opam/issues/6535))

- 🧶 Change the behaviour of `--deps-only`, where it no longer requires unicity of package version between the request and the installed packages. In other words, if you have `pkg.1` installed, installing dependencies of `pkg.2` no longer removes `pkg.1`. This also allows to install dependencies of conflicting packages when their dependencies are compliant ([#6520](https://github.com/ocaml/opam/issues/6520))

- 🧨 Fixed a couple of regressions which would make `opam update` crash in some cases ([#6513](https://github.com/ocaml/opam/issues/6513), [#6527](https://github.com/ocaml/opam/issues/6527))

- 🪟 Improve the prebuilt Windows binaries by including Cygwin’s `setup-x86_64.exe` in the binary itself as fallback, in case `cygwin.com` is inaccessible ([#6498](https://github.com/ocaml/opam/issues/6498), [#6538](https://github.com/ocaml/opam/issues/6538))

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

## Try it!

The upgrade instructions are unchanged:

For Unix systems

```sh
bash -c "sh <(curl -fsSL https://opam.ocaml.org/install.sh) --version 2.4.0~beta1"

```

or from PowerShell for Windows systems

```sh
Invoke-Expression "& { $(Invoke-RestMethod https://opam.ocaml.org/install.ps1) } -Version 2.4.0~beta1"

```

Please report any issues to the [bug-tracker](https://github.com/ocaml/opam/issues).

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

---

_[View the full topic](https://discuss.ocaml.org/t/ann-opam-2-4-0-beta1/16856)._
