# \[ANN\] opam 2.6.0~alpha1

**URL:** <https://discuss.ocaml.org/t/ann-opam-2-6-0-alpha1/18372>\
**Category:** Ecosystem\
**Tags:** opam, announce\
**Created:** [July 20, 2026, 7:11pm UTC](https://discuss.ocaml.org/t/ann-opam-2-6-0-alpha1/18372 "2026-07-20T19:11:45Z")\
**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:** [July 20, 2026, 7:11pm UTC](https://discuss.ocaml.org/t/ann-opam-2-6-0-alpha1/18372/1 "2026-07-20T19:11:46Z")

</div>

Hi everyone,

We are happy to announce the first alpha release of opam 2.6.0. This is the culmination of 2 years of team work requiring large internal changes, we hope you’ll enjoy it.

This version is an alpha, we invite users to test it to spot previously unnoticed bugs as we head towards the stable release.

## What’s new? Some highlights:

- 💰 For people using the shell hooks, this release changed the way `PATH` is kept up-to-date from opam taking priority over any other elements of `PATH` by making sure to always be in front, to replacing the directory managed by opam in-place, keeping the order asked by the user. To benefit from this, make sure `opam init --reinit -ni` was ran once after upgrading to this version (automatically done by our install script if it detects an existing opam installation). ([#6859](https://github.com/ocaml/opam/pull/6859), [#6815](https://github.com/ocaml/opam/issues/6815)). _Thanks to [@gridbugs](https://github.com/gridbugs) for this contribution._

- 🗑 Reduce the disk space usage of opam by removing the `build` directory as soon as possible and removing redundant archive caches. While the disk usage used by opam can be reduced over time while simply reinstalling packages, you can liberate some free GB in one go using `opam clean --all-switches`. ([#6440](https://github.com/ocaml/opam/pull/6440), [#4056](https://github.com/ocaml/opam/issues/4056), [#5448](https://github.com/ocaml/opam/issues/5448))

- 🚄 Improve performance drastically on certain file-systems (e.g. NTFS on Windows or IO constrained machines) by changing the format HTTP repositories such as [opam.ocaml.org](http://opam.ocaml.org) are stored in internally. ([#6625](https://github.com/ocaml/opam/pull/6625), [#5346](https://github.com/ocaml/opam/issues/5346), [#5741](https://github.com/ocaml/opam/issues/5741), [#5648](https://github.com/ocaml/opam/issues/5648), [#5484](https://github.com/ocaml/opam/issues/5484), [#5559](https://github.com/ocaml/opam/issues/5559), [#3050](https://github.com/ocaml/opam/issues/3050), [#6974](https://github.com/ocaml/opam/issues/6974)).

- 📩 Add `root` and `rootexec` sections to `.install` files to install files from the root prefix ([#6938](https://github.com/ocaml/opam/pull/6938), [#6919](https://github.com/ocaml/opam/issues/6919)). _Thanks to [@WardBrian](https://github.com/WardBrian) for this contribution._

- 👩‍💻 Add a new `--ignore-available-on` argument to allow ignoring the `available:` field of certain packages ([#6836](https://github.com/ocaml/opam/pull/6836), [#5283](https://github.com/ocaml/opam/issues/5283)). _Thanks once-again to [@WardBrian](https://github.com/WardBrian) for this contribution._

- 🌊 Many more UI additions and improvements, bug fixes, …

📖 You can read our [blog post](https://opam.ocaml.org/blog/opam-2-6-0-alpha1/) 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.6.0-alpha1) or the [changelog](https://github.com/ocaml/opam/blob/2.6.0-alpha1/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.6.0~alpha1"

```

or from PowerShell for Windows systems

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

```

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

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

* * *

_Special thanks to the Haematology department and Bone Marrow Transplant Unit of the NHS Greater Glasgow for making this release possible \<3_

---

_[View the full topic](https://discuss.ocaml.org/t/ann-opam-2-6-0-alpha1/18372)._
