macOS
brew install opamlocal Homebrew formula metadata
sudo port install opamMacPorts ports tree · ocaml/opam/Portfile · ソース: api.github.com
brew
opam のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install opamlocal Homebrew formula metadata
sudo port install opamMacPorts ports tree · ocaml/opam/Portfile · ソース: api.github.com
sudo apk add opamAlpine Linux edge package indexes · opam · ソース: dl-cdn.alpinelinux.org
sudo dnf install opamFedora Rawhide package metadata · opam · ソース: dl.fedoraproject.org
nix profile install nixpkgs#opamnixpkgs package indexes · opam · ソース: raw.githubusercontent.com
sudo pacman -S opamArch Linux sync databases · opam · ソース: geo.mirror.pkgbuild.com
sudo zypper install opamopenSUSE Tumbleweed package metadata · opam · ソース: download.opensuse.org
scoop install main/opamScoop official bucket manifest trees · bucket/opam.json · ソース: api.github.com
winget install --id OCaml.opam -eWindows Package Manager source index · OCaml.opam · ソース: cdn.winget.microsoft.com
概要
OCaml package manager
履歴
opam is the source-based package manager for OCaml. It manages compiler switches, package constraints, solver-backed dependency resolution, and a Git-friendly development workflow, making it both the OCaml ecosystem's package index client and a practical compiler-environment manager.
The opam history published by the project traces the work to OCamlPro and the wider OCaml community in 2012. Thomas Gazagnaire pushed the first public commit in February 2012; constraint-solving work from Roberto Di Cosmo and Pietro Abate helped connect opam with Mancoosi tools such as CUDF and dose; and documentation and website work followed before the public beta.
The first public beta appeared in January 2013, and opam 1.0.0 was announced on March 15, 2013. The 1.0 release added an auto-configuration tool around opam init, shell completion, toplevel script loading, and related setup tasks, which lowered the cost of getting a usable OCaml environment.
The project quickly became more than a package installer. It standardized switch-based OCaml compiler management, package descriptions, solver integration, and repository workflows in a language ecosystem where compiler versions and native dependencies often matter as much as library versions.
Mirage began using opam in June 2012 for custom compiler needs, and the opam-repository grew through community package submissions. Jane Street's Core libraries appeared in the repository in July 2012, Travis CI was integrated into pull-request processing in September 2013, and contributors were contacted in 2013 to relicense repository contributions to CC0 for the move to the ocaml organization.
The package metadata in this batch records opam across many OS package managers, including Alpine, Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Scoop, Ubuntu, WinGet, and openSUSE. That broad packaging footprint reflects opam's role as the expected bootstrap tool for OCaml development across Unix, macOS, and Windows-oriented environments.
Developers use opam to install OCaml compilers and libraries, create and switch between isolated compiler environments, update package metadata, upgrade installed packages, pin packages from local or remote sources, and reproduce project dependency sets. The homepage's basic workflow is list, install, update, and upgrade; day-to-day OCaml work adds switches and project-local package constraints.
Operators and distribution maintainers care about opam because it bridges source builds, solver constraints, compiler variants, and external system packages. A package can be available in opam while still depending on native libraries provided by Homebrew, apt, pacman, or another host package manager.
opam is one of the cleaner examples of a language package manager that also manages language runtimes. Its switch model makes compiler selection explicit, and its repository model gives OCaml packages machine-readable metadata while keeping the package index in Git.
For package nerds, opam is important because it makes the hard part visible: OCaml package installation is not just downloading archives, but solving constraints across compiler versions, library packages, build tools, and external dependencies. That is why opam sits naturally in both developer-tools and dependency-management categories.
セキュリティ状態
infrastructure mutation or orchestration signal.
リスク orange · 信頼度 中 · infrastructure
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.opam/config~/.opamrc/etc/opamrc実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
opam | cli | グローバル実行可能ファイル | |
opam-installer | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
インストールメタデータ
| パッケージキー | brew:opam |
|---|---|
| バージョン | 2.5.2 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/opam |
| ホームページ | https://opam.ocaml.org |
| リポジトリ | https://github.com/ocaml/opam |
| 上流ドキュメント | https://github.com/ocaml/opam#readme |
| ライセンス | LGPL-2.1-only |
| ソースアーカイブ | https://github.com/ocaml/opam/releases/download/2.5.2/opam-full-2.5.2.tar.gz |
| 最終更新 | 2026-07-09T14:24:15Z |
| Pulse | updated |
| 依存関係 | rsync |
| ビルド依存関係 | ocaml |
| macOS 提供ライブラリ | unzip |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
| 注意点 | OPAM uses ~/.opam by default for its package database, so you need to initialize it first by running: $ opam init |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | opam |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
opam 2.3.0-1+deb13u1
package manager for OCaml
sudo apt install opamopam-doc 2.3.0-1+deb13u1
package manager for OCaml (documentation)
sudo apt install opam-docopam-installer 2.3.0-1+deb13u1
Utility handling (un)installation of Opam .install files
sudo apt install opam-installeropam
nix profile install nixpkgs#opamopam 2.1.5-1
package manager for OCaml
sudo apt install opamopam-doc 2.1.5-1
package manager for OCaml (documentation)
sudo apt install opam-docopam-installer 2.1.5-1
Utility handling (un)installation of Opam .install files
sudo apt install opam-installeropam 2.5.1-r0
OCaml Package Manager
sudo apk add opamopam-doc 2.5.1-r0
OCaml Package Manager (documentation)
sudo apk add opam-docopam 2.5.1-1.fc45
Source-based package manager for OCaml
sudo dnf install opamopam-installer 2.5.1-1.fc45
Standalone script for opam install files
sudo dnf install opam-installeropam 2.5.1-1
OCaml package manager
sudo pacman -S opamopam 2.5.1-1.2
Source-based package manager for OCaml
sudo zypper install opamopam-devel 2.5.1-1.2
Development files for opam
sudo zypper install opam-developam-installer 2.5.1-1.2
Standalone tool for opam install files
sudo zypper install opam-installeropam
sudo port install opamソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.