# \[ANN\] opam 2.5.1

**URL:** <https://discuss.ocaml.org/t/ann-opam-2-5-1/17997>\
**Category:** Ecosystem\
**Tags:** opam, announce\
**Created:** [April 16, 2026, 9:04pm UTC](https://discuss.ocaml.org/t/ann-opam-2-5-1/17997 "2026-04-16T21:04:25Z")\
**Posts on this page:** 1\
**Page:** 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:** [April 16, 2026, 9:04pm UTC](https://discuss.ocaml.org/t/ann-opam-2-5-1/17997/1 "2026-04-16T21:04:26Z")

</div>

Hi everyone,

opam 2.5.1 is now available. This release is fixing a security issue ([OSEC-2026-03](https://github.com/ocaml/security-advisories/blob/main/advisories/2026/OSEC-2026-03.md)) and other minor things. _Thanks to [@andrew](https://github.com/andrew) for reporting this issue._

We invite everyone to upgrade to 2.5.1 as soon as possible.

If you depend on the older opam package of your preferred distribution, distributions such as Debian Stable have already started backporting the relevant fix and the patched version should be available there very soon.

You can read our [blog post](https://opam.ocaml.org/blog/opam-2-5-1/) for relevant links and details.

## Try it!

The upgrade instructions are unchanged:

For Unix systems

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

```

or from PowerShell for Windows systems

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

```

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

Happy hacking,

\<\> \<\> The opam team \<\> \<\> 🐪
