Hi everyone,
We’re happy to announce the release of opam 2.6.0 and encourage all users to upgrade.
Note: the following section will recap the various major changes in opam 2.6.0 for anyone who haven’t already read the previous pre-release announcements. For those who did, note that nothing worth mentioning changed between 2.6.0~rc1 and the final 2.6.0.
What’s new? Some highlights:
-
For people using the shell hooks, this release changed the way PATHis kept up-to-date from opam taking priority over any other elements ofPATHby 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 sureopam init --reinit -niwas ran once after upgrading to this version (automatically done by our install script if it detects an existing opam installation). Thanks to @gridbugs for this contribution. -
Reduce the disk space usage of opam by removing the builddirectory 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 usingopam clean --all-switches. -
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. -
Add rootandrootexecsections to.installfiles to install files from the root prefix. Thanks to @WardBrian for this contribution. -
Add a new --ignore-available-onargument to allow ignoring theavailable:field of certain packages. Thanks once-again to @WardBrian for this contribution. -
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. -
When --safeis given, opam used to reset debug-level to 0. This is no longer the case. Consider updating your scripts accordingly. -
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"
or from PowerShell for Windows systems
Invoke-Expression "& { $(Invoke-RestMethod https://opam.ocaml.org/install.ps1) } -Version 2.6.0"
Please report any issues to the bug-tracker.
Happy hacking,
<> <> The opam team <> <> ![]()