Features
- opam 2.5.0~alpha1: released 2025-10-16. Version bumped to
2.6.0~alpha1~devthe following day. Release PR, version bump.
Compatibility and Releases
-
opam 2.4.1 / cmdliner 2.0.0: opam fails to compile against cmdliner 2.0.0 (
Unbound value Term.info). The short-term plan is to vendor cmdliner 1; a constraint pinning cmdliner < 2.0.0 was added. #6739, #6425. -
opam install script (Ubuntu 24.04): an AppArmor profile is now installed alongside opam, resolving
bwrap: operation not permittedfailures caused by restricted unprivileged user namespaces. #6647.
Fixes
-
opam init (bash): now writes the opam incantation to
~/.bashrcinstead of~/.profile, and advises sourcing.bashrcfrom.profile. Eliminates the infinite-sourcing loop on Debian-family systems. #6603. -
opam env / init scripts:
variables.shis no longer sourced whenOPAM_SWITCH_PREFIXis already set, preventingPATHandMANPATHduplication in subshells and editor terminals. PR #6729. -
OPAMFETCH: the value is now tokenised with POSIX shell quoting rules, so
OPAMFETCH='wget --header "Authorization: token …" …'passes the header as a single argument. #5492. -
opam remove --force: no longer executes remove commands in the current working directory when the target package is not installed. #6672.
-
opam upgrade: packages whose opam file has empty-but-present
build,runtest,install, orremovefields are no longer flagged for recompilation. #6505.