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, #6815). Thanks to @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, #4056, #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 are stored in internally. (#6625, #5346, #5741, #5648, #5484, #5559, #3050, #6974).
-
Add root and rootexec sections to .install files to install files from the root prefix (#6938, #6919). Thanks to @WardBrian for this contribution.
-
Add a new --ignore-available-on argument to allow ignoring the available: field of certain packages (#6836, #5283). Thanks once-again to @WardBrian for this contribution.
-
Many more UI additions and improvements, bug fixes, …
You can read our blog post for more information about these changes and more, and for even more details you can take a look at the release note or the changelog.
Try it!
The upgrade instructions are unchanged:
For Unix systems
bash -c "sh <(curl -fsSL https://opam.ocaml.org/install.sh) --version 2.6.0~alpha1"
or from PowerShell for Windows systems
Invoke-Expression "& { $(Invoke-RestMethod https://opam.ocaml.org/install.ps1) } -Version 2.6.0~alpha1"
Please report any issues to the bug-tracker.
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
Hi everyone,
We are happy to announce the release of opam 2.6.0~beta1.
This version is a beta, we invite users to test it to spot previously unnoticed bugs as we head towards the stable release.
Main changes compared to 2.6.0~alpha1
-
opam init --reinit (command typically called after upgrading from an older opam version) got improved. It now stops asking to retry the command when upgrading from a 2.1 opam root, and regenerates switches metadata to allow tools that use the opam library to load the switch informations without modifying the opam root (#7057, #7066)
-
When --safe is given, opam used to reset debug-level to 0. This is no longer the case. Consider updating your scripts accordingly. (#7000)
-
opam now disable git gc/maintenance on repositories it maintains. This is because git spawns maintenance tasks in the background which creates/removes/modifies files and unaware opam processes can sometimes break on a race-condition when handling such a git repository (#7031)
You can read our blog post for more information about these changes and more, and for even more details you can take a look at the release note or the changelog.
Try it!
The upgrade instructions are unchanged:
For Unix systems
bash -c "sh <(curl -fsSL https://opam.ocaml.org/install.sh) --version 2.6.0~beta1"
or from PowerShell for Windows systems
Invoke-Expression "& { $(Invoke-RestMethod https://opam.ocaml.org/install.ps1) } -Version 2.6.0~beta1"
Please report any issues to the bug-tracker.
Happy hacking,
<> <> The opam team <> <> 
Hot on the heels of beta1, we are happy to announce the release of opam 2.6.0~beta2.
This version is a beta, we invite users to test it to spot previously unnoticed bugs as we head towards the stable release.
Main changes compared to 2.6.0~beta1
The main change is a fix of a performance regression compared to opam 2.5, where opam project trees were scanned for nothing, when pinning them, making commands such as opam install --deps-only . excruatingly slow on large projects (#7098)
You can read our blog post for more information about these changes and more, and for even more details you can take a look at the release note or the changelog.
Try it!
The upgrade instructions are unchanged:
For Unix systems
bash -c "sh <(curl -fsSL https://opam.ocaml.org/install.sh) --version 2.6.0~beta2"
or from PowerShell for Windows systems
Invoke-Expression "& { $(Invoke-RestMethod https://opam.ocaml.org/install.ps1) } -Version 2.6.0~beta2"
Please report any issues to the bug-tracker.
Happy hacking,
<> <> The opam team <> <> 