Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 ocaml@4

查看 ocaml@4 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install ocaml@4

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install ocaml

MacPorts ports tree · lang/ocaml/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add ocaml

Alpine Linux edge package indexes · ocaml · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install ocaml

Debian stable package indexes · ocaml · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install ocaml

Fedora Rawhide package metadata · ocaml · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#ocaml

nixpkgs package indexes · ocaml · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S ocaml

Arch Linux sync databases · ocaml · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install ocaml

openSUSE Tumbleweed package metadata · ocaml · 来源: download.opensuse.org

概览

软件包摘要

General purpose programming language in the ML family

命令和别名

  • ocamlcp.byte
  • ocamlcp.opt
  • ocamlmklib.byte
  • ocamlmklib.opt
  • ocamlmktop.byte
  • ocamlmktop.opt
  • ocamloptp.byte
  • ocamloptp.opt
  • ocamlprof.byte
  • ocamlprof.opt

历史

项目历史与用法

ocaml@4 packages the OCaml 4 compiler line separately from the main ocaml formula. It exists for projects and dependency graphs that still need the OCaml 4 runtime, compiler-libs AST, PPX compatibility, or build behavior rather than the OCaml 5 runtime model.

项目历史

OCaml 4 began as the post-Objective Caml line that added features such as GADTs and first-class modules in 4.0. The 4.x series became the compatibility baseline for a large portion of the opam ecosystem across the 2010s and early 2020s, including packages whose PPX rewriters or compiler-libs dependencies track specific OCaml AST versions.

The 4.14 branch became the final OCaml 4 branch. OCaml.org release notes describe 4.14 as the last version of OCaml 4 and a long-term support branch for the transition to OCaml 5; OCaml 4.14.4 was released on 2026-06-15 with safe bug fixes and security fixes cherry-picked from OCaml 5.

采用历史

The separate Homebrew formula reflects the same compatibility pressure seen in opam switches: developers may need a compiler line older than the default package to build older projects, reproduce releases, or support dependencies not yet migrated to OCaml 5.

使用方式

Users install ocaml@4 when a project specifies OCaml 4.14 or an older 4.x-compatible dependency set. The package exposes the standard OCaml compiler commands, including ocaml, ocamlc, ocamlopt, ocamldep, ocamldoc, ocamllex, ocamlyacc, ocamlobjinfo, and runtime utilities.

为什么软件包爱好者会关心

Versioned compiler formulae are important for OCaml because compiler releases affect ABI, compiler-libs APIs, PPX ASTs, and package solver outcomes. ocaml@4 is a compact example of a package manager preserving a language ecosystem's old compiler branch while the main formula follows OCaml 5.

时间线

  • 2012: OCaml 4.0 added GADTs and first-class modules.
  • 2016: OCaml 4.03 split ocamlbuild into an independent project.
  • 2022: OCaml 5.0 introduced a rewritten runtime and began the transition away from OCaml 4 as the main line.
  • 2024-03-14: OCaml 4.14.2 release notes described 4.14 as the last OCaml 4 branch.
  • 2026-06-15: OCaml 4.14.4 was released with safe bug fixes and security fixes cherry-picked from OCaml 5.

Related projects

  • ocaml@4 pairs with opam switches, findlib, Dune, ocamlbuild, and PPX tooling in older projects. Its practical relationship to brew:ocaml is version selection rather than a separate language lineage.

安全态势

尚未找到受保护工具覆盖

没有找到 ocaml@4 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
ocamlcp.bytecli全局可执行文件
ocamlcp.optcli全局可执行文件
ocamlmklib.bytecli全局可执行文件
ocamlmklib.optcli全局可执行文件
ocamlmktop.bytecli全局可执行文件
ocamlmktop.optcli全局可执行文件
ocamloptp.bytecli全局可执行文件
ocamloptp.optcli全局可执行文件
ocamlprof.bytecli全局可执行文件
ocamlprof.optcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本4.14.4
管理器更新时间2026-06-19
本地数据OK
上游not checked
检测到的最新版本未检测到

https://ocaml.org/

  • 信息Release/tag comparison is only available for GitHub repositories.https://ocaml.org/none 置信度

安装元数据

软件包元数据

软件包键brew:ocaml@4
版本4.14.4
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/ocaml@4
主页https://ocaml.org/
仓库https://github.com/ocaml/ocaml
上游文档https://ocaml.org/docs
许可证LGPL-2.1-only WITH OCaml-LGPL-linking-exception
源码归档https://caml.inria.fr/pub/distrib/ocaml-4.14/ocaml-4.14.4.tar.xz
最后更新2026-06-19T12:32:40-07:00
Pulseupdated
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameocaml@4
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyyes
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt88%

libcompiler-libs-ocaml-dev 5.3.0-3

OCaml compiler library (development files)

https://ocaml.org/

sudo apt install libcompiler-libs-ocaml-dev
  • Section: ocaml
  • Architecture: amd64
  • Source Package: ocaml
  • 2 依赖
  • 1 提供
  • versioned package alias match
  • 匹配方式:Ocaml
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libcompiler-libs-ocaml-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt88%

libstdlib-ocaml 5.3.0-3

OCaml standard library (runtime files)

https://ocaml.org/

sudo apt install libstdlib-ocaml
  • Section: ocaml
  • Architecture: amd64
  • Source Package: ocaml
  • 2 依赖
  • 4 提供
  • versioned package alias match
  • 匹配方式:Ocaml
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libstdlib-ocaml from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt88%

libstdlib-ocaml-dev 5.3.0-3

OCaml standard library (development files)

https://ocaml.org/

sudo apt install libstdlib-ocaml-dev
  • Section: ocaml
  • Architecture: amd64
  • Source Package: ocaml
  • 1 依赖
  • 4 提供
  • 1 可选依赖
  • versioned package alias match
  • 匹配方式:Ocaml
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libstdlib-ocaml-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt88%

ocaml 5.3.0-3

ML language implementation with a class-based object system

https://ocaml.org/

sudo apt install ocaml
  • Section: ocaml
  • Architecture: amd64
  • 8 依赖
  • 3 提供
  • 4 可选依赖
  • versioned package alias match
  • 匹配方式:Ocaml
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ocaml from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt88%

ocaml-base 5.3.0-3

Runtime system for OCaml bytecode executables

https://ocaml.org/

sudo apt install ocaml-base
  • Section: ocaml
  • Architecture: amd64
  • Source Package: ocaml
  • 3 依赖
  • 1 提供
  • versioned package alias match
  • 匹配方式:Ocaml
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ocaml-base from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt88%

ocaml-base-nox 5.3.0-3

transitional package for ocaml-base

https://ocaml.org/

sudo apt install ocaml-base-nox
  • Section: ocaml
  • Architecture: all
  • Source Package: ocaml
  • 1 依赖
  • versioned package alias match
  • 匹配方式:Ocaml
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ocaml-base-nox from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt88%

ocaml-compiler-libs 5.3.0-3

transitional package for libcompiler-libs-ocaml-dev

https://ocaml.org/

sudo apt install ocaml-compiler-libs
  • Section: ocaml
  • Architecture: all
  • Source Package: ocaml
  • 1 依赖
  • versioned package alias match
  • 匹配方式:Ocaml
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ocaml-compiler-libs from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt88%

ocaml-interp 5.3.0-3

OCaml interactive interpreter and standard libraries

https://ocaml.org/

sudo apt install ocaml-interp
  • Section: ocaml
  • Architecture: amd64
  • Source Package: ocaml
  • 3 依赖
  • 1 提供
  • 2 可选依赖
  • versioned package alias match
  • 匹配方式:Ocaml
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ocaml-interp from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt88%

ocaml-man 5.3.0-3

OCaml interpreter and standard libraries (lib manpages)

https://ocaml.org/

sudo apt install ocaml-man
  • Section: ocaml
  • Architecture: all
  • Source Package: ocaml
  • versioned package alias match
  • 匹配方式:Ocaml
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ocaml-man from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt88%

ocaml-nox 5.3.0-3

transitional package for ocaml

https://ocaml.org/

sudo apt install ocaml-nox
  • Section: ocaml
  • Architecture: all
  • Source Package: ocaml
  • 1 依赖
  • versioned package alias match
  • 匹配方式:Ocaml
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ocaml-nox from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt88%

ocaml-source 5.3.0-3

Sources for Objective Caml

https://ocaml.org/

sudo apt install ocaml-source
  • Section: ocaml
  • Architecture: all
  • Source Package: ocaml
  • 1 提供
  • versioned package alias match
  • 匹配方式:Ocaml
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ocaml-source from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix88%

ocaml

nix profile install nixpkgs#ocaml
  • versioned package alias match
  • 匹配方式:Ocaml
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: ocaml from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt88%

libcompiler-libs-ocaml-dev 4.14.1-1ubuntu1

OCaml compiler library (development files)

https://ocaml.org/

sudo apt install libcompiler-libs-ocaml-dev
  • Section: universe/ocaml
  • Architecture: amd64
  • Source Package: ocaml
  • 1 依赖
  • 1 提供
  • versioned package alias match
  • 匹配方式:Ocaml
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libcompiler-libs-ocaml-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt88%

libstdlib-ocaml 4.14.1-1ubuntu1

OCaml standard library (runtime files)

https://ocaml.org/

sudo apt install libstdlib-ocaml
  • Section: universe/ocaml
  • Architecture: amd64
  • Source Package: ocaml
  • 1 依赖
  • 4 提供
  • versioned package alias match
  • 匹配方式:Ocaml
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libstdlib-ocaml from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt88%

libstdlib-ocaml-dev 4.14.1-1ubuntu1

OCaml standard library (development files)

https://ocaml.org/

sudo apt install libstdlib-ocaml-dev
  • Section: universe/ocaml
  • Architecture: amd64
  • Source Package: ocaml
  • 1 依赖
  • 4 提供
  • 1 可选依赖
  • versioned package alias match
  • 匹配方式:Ocaml
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libstdlib-ocaml-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt88%

ocaml 4.14.1-1ubuntu1

ML language implementation with a class-based object system

https://ocaml.org/

sudo apt install ocaml
  • Section: universe/devel
  • Architecture: amd64
  • 6 依赖
  • 3 提供
  • 4 可选依赖
  • versioned package alias match
  • 匹配方式:Ocaml
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ocaml from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Nucleus package database
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment