# 使用 Homebrew, apk, apt, dnf, MacPorts, pacman, zypper 安装 ocaml-findlib

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ocaml-findlib
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ocaml-findlib
```

  证据: MacPorts ports tree: ocaml/ocaml-findlib/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add ocaml-findlib
```

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

- Debian apt (92%):

```sh
sudo apt install ocaml-findlib
```

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

- dnf (92%):

```sh
sudo dnf install ocaml-findlib
```

  证据: Fedora Rawhide package metadata: ocaml-findlib from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- pacman (92%):

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

  证据: Arch Linux sync databases: ocaml-findlib from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install ocaml-findlib
```

  证据: openSUSE Tumbleweed package metadata: ocaml-findlib from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:ocaml-findlib
- **软件包管理器:** Homebrew
- **版本:** 1.9.8
- **来源摘要:** OCaml library manager
- **主页:** <http://projects.camlcity.org/projects/findlib.html>
- **仓库:** <https://github.com/ocaml/ocamlfind>
- **最后更新:** 2026-07-13T05:11:30Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ocamlfind (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.9.8
## 项目历史与用法

ocaml-findlib provides findlib and the ocamlfind command, the long-standing library discovery and compiler-driver layer for OCaml libraries. Its core idea is small but ecosystem-shaping: libraries install META files that describe versions, compiler options, archives, dependencies, and predicates, and ocamlfind turns those descriptions into compiler and linker flags.

### 项目历史

Findlib was created by Gerd Stolpmann and dates back to the Objective Caml era; the upstream README records copyright years beginning in 1999, and a Caml-list announcement records findlib 1.0 as a compatibility-preserving major release that required OCaml 3.07. The project page describes the package as a convention for storing libraries plus a META file format, with ocamlfind as the tool that interprets those files.

### 采用历史

Camlcity's project page describes Findlib as the de-facto standard for OCaml library management after years of development, with free OCaml software depending on it and distributions such as GODI and Debian ensuring libraries ship META files. opam later became the primary source-based package manager for OCaml, but ocamlfind remained the compatibility layer many build systems and packages use to locate installed libraries inside a switch.

### 使用方式

Developers invoke ocamlfind as a wrapper around ocamlc, ocamlopt, ocamldep, and related tools, passing package selections such as -package and -linkpkg. Build systems use the same mechanism to query installed packages and translate package-level dependencies into the include paths, archives, C stubs, linker options, and runtime DLL paths expected by the compiler.

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

Findlib matters because it separated OCaml library identity from ad hoc include paths. A package database of META files gave distro packagers, opam packages, and build tools a shared vocabulary before Dune became dominant, and many older OCaml packages still expose findlib names that differ from their opam package names.

### 时间线

- 1999: The upstream README's copyright range begins, placing Findlib's origin in the late Objective Caml period.
- 2004: The findlib 1.0 announcement described a large but backward-compatible release and added package subpackages.
- 2010s: Findlib became the de-facto OCaml library-management convention documented by Camlcity and used by distributions.
- 2025-02-05: opam published ocamlfind 1.9.8 with build-related fixes.

### Related projects

- opam manages source packages and compiler switches; findlib manages installed library discovery within those environments. Dune can generate and consume package metadata, but ocamlfind remains the historical bridge between installed OCaml libraries and compiler invocations.

### 来源

- <https://github.com/ocaml/ocamlfind>
- <https://github.com/ocaml/ocamlfind/blob/master/doc/README.xml>
- <https://groups.google.com/g/fa.caml/c/SB0v54-klb4>
- <https://man.archlinux.org/man/ocamlfind.1.en>
- <https://opam.ocaml.org/packages/ocamlfind/>
- <https://projects.camlcity.org/projects/findlib.html>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - ocaml-findlib - 1.9.8-1+b1: normalized package name match | Debian stable package indexes: ocaml-findlib from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | management tool for OCaml libraries | http://projects.camlcity.org/projects/findlib.html
- Ubuntu apt - ocaml-findlib - 1.9.6-1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: ocaml-findlib from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | management tool for OCaml libraries | http://projects.camlcity.org/projects/findlib.html
- apk - ocaml-findlib - 1.9.6-r8: normalized package name match | Alpine Linux edge package indexes: ocaml-findlib from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | OCaml package manager (library) | http://projects.camlcity.org/projects/findlib.html
- apk - ocaml-findlib-dev - 1.9.6-r8: normalized package name match | Alpine Linux edge package indexes: ocaml-findlib-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | OCaml package manager (development files) | http://projects.camlcity.org/projects/findlib.html
- apk - ocaml-findlib-doc - 1.9.6-r8: normalized package name match | Alpine Linux edge package indexes: ocaml-findlib-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | OCaml package manager (documentation) | http://projects.camlcity.org/projects/findlib.html
- apk - ocamlfind - 1.9.6-r8: normalized package name match | Alpine Linux edge package indexes: ocamlfind from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | OCaml package manager | http://projects.camlcity.org/projects/findlib.html
- dnf - ocaml-findlib - 1.9.8-10.fc45: normalized package name match | Fedora Rawhide package metadata: ocaml-findlib from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Objective CAML package manager and build helper | http://projects.camlcity.org/projects/findlib.html
- dnf - ocaml-findlib-devel - 1.9.8-10.fc45: normalized package name match | Fedora Rawhide package metadata: ocaml-findlib-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for ocaml-findlib | http://projects.camlcity.org/projects/findlib.html
- pacman - ocaml-findlib - 1.9.8-7: normalized package name match | Arch Linux sync databases: ocaml-findlib from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | OCaml package manager | http://projects.camlcity.org/projects/findlib.html
- zypper - ocaml-findlib - 1.9.8-1.2: normalized package name match | openSUSE Tumbleweed package metadata: ocaml-findlib from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Objective CAML package manager and build helper | https://opam.ocaml.org/packages/ocamlfind/
- zypper - ocaml-findlib-devel - 1.9.8-1.2: normalized package name match | openSUSE Tumbleweed package metadata: ocaml-findlib-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for ocaml-findlib | https://opam.ocaml.org/packages/ocamlfind/
- MacPorts - ocaml-findlib: normalized package name match | MacPorts ports tree: ocaml/ocaml-findlib/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/ocaml-findlib.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ocaml-findlib.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
