# ocaml をインストール

ocaml のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:ocaml
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install ocaml
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ocaml
```

  証拠: MacPorts ports tree: lang/ocaml/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add ocaml
```

  証拠: Alpine Linux edge package indexes: ocaml from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install ocaml
```

  証拠: Debian stable package indexes: ocaml from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install ocaml
```

  証拠: Fedora Rawhide package metadata: ocaml from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#ocaml
```

  証拠: nixpkgs package indexes: ocaml from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S ocaml
```

  証拠: Arch Linux sync databases: ocaml from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install ocaml
```

  証拠: openSUSE Tumbleweed package metadata: ocaml from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:ocaml
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/ocaml>
- **バージョン:** 5.4.1
- **ソース概要:** General purpose programming language in the ML family
- **ホームページ:** <https://ocaml.org/>
- **上流ドキュメント:** <https://ocaml.org/>
- **ライセンス:** LGPL-2.1-only WITH OCaml-LGPL-linking-exception
- **ソースアーカイブ:** <https://caml.inria.fr/pub/distrib/ocaml-5.4/ocaml-5.4.1.tar.xz>
- **更新:** 2026-03-22T03:32:09Z
- **生成ソース:** 2026-05-26T22:45:13+00:00

## 実行可能ファイル

- ocaml (cli)
- ocamlc (cli)
- ocamlc.byte (cli)
- ocamlc.opt (cli)
- ocamlcmt (cli)
- ocamlcp (cli)
- ocamldebug (cli)
- ocamldep (cli)
- ocamldep.byte (cli)
- ocamldep.opt (cli)
- ocamldoc (cli)
- ocamldoc.opt (cli)
- ocamllex (cli)
- ocamllex.byte (cli)
- ocamllex.opt (cli)
- ocamlmklib (cli)
- ocamlmktop (cli)
- ocamlobjinfo (cli)
- ocamlobjinfo.byte (cli)
- ocamlobjinfo.opt (cli)
- ocamlopt (cli)
- ocamlopt.byte (cli)
- ocamlopt.opt (cli)
- ocamloptp (cli)
- ocamlprof (cli)
- ocamlrun (cli)
- ocamlrund (cli)
- ocamlruni (cli)
- ocamlyacc (cli)
- ocaml (エイリアス)
- ocamlc (エイリアス)
- ocamlc.byte (エイリアス)
- ocamlc.opt (エイリアス)
- ocamlcmt (エイリアス)
- ocamlcp (エイリアス)
- ocamldebug (エイリアス)
- ocamldep (エイリアス)
- ocamldep.byte (エイリアス)
- ocamldep.opt (エイリアス)
- ocamldoc (エイリアス)
- ocamldoc.opt (エイリアス)
- ocamllex (エイリアス)
- ocamllex.byte (エイリアス)
- ocamllex.opt (エイリアス)
- ocamlmklib (エイリアス)
- ocamlmktop (エイリアス)
- ocamlobjinfo (エイリアス)
- ocamlobjinfo.byte (エイリアス)
- ocamlobjinfo.opt (エイリアス)
- ocamlopt (エイリアス)
- ocamlopt.byte (エイリアス)
- ocamlopt.opt (エイリアス)
- ocamloptp (エイリアス)
- ocamlprof (エイリアス)
- ocamlrun (エイリアス)
- ocamlrund (エイリアス)
- ocamlruni (エイリアス)
- ocamlyacc (エイリアス)

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 鮮度

- ページ生成日: 2026-05-26
- マネージャ版: 5.4.1
- マネージャ更新日: 2026-03-22
- ローカルデータ: ok
- 上流リポジトリ: https://ocaml.org/
- info: Release/tag comparison is only available for GitHub repositories.

## セキュリティノート

generalized runtime or code generation signal.

- **Geiger リスク:** yellow / medium
- generalized runtime or code generation signal

## 関連リンク

- [rocq](https://www.automicvault.com/pkg/brew/rocq/) - Popular package that depends on this formula.
- [ocaml-findlib](https://www.automicvault.com/pkg/brew/ocaml-findlib/) - Popular package that depends on this formula.
- [cpdf](https://www.automicvault.com/pkg/brew/cpdf/) - Popular package that depends on this formula.
- [ocaml-zarith](https://www.automicvault.com/pkg/brew/ocaml-zarith/) - Popular package that depends on this formula.
- [camlpdf](https://www.automicvault.com/pkg/brew/camlpdf/) - Popular package that depends on this formula.
- [camlp5](https://www.automicvault.com/pkg/brew/camlp5/) - Popular package that depends on this formula.
- [camlp-streams](https://www.automicvault.com/pkg/brew/camlp-streams/) - Popular package that depends on this formula.
- [ocamlbuild](https://www.automicvault.com/pkg/brew/ocamlbuild/) - Popular package that depends on this formula.
- [ocaml@4](https://www.automicvault.com/pkg/brew/ocaml-4/) - Package name indicates the same formula family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/)

## ソース

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
