# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper 安装 flann

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

## 安装

```sh
sudo av install brew:flann
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install flann
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install flann
```

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

### Linux

- apk (92%):

```sh
sudo apk add flann
```

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

- dnf (92%):

```sh
sudo dnf install flann
```

  证据: Fedora Rawhide package metadata: flann from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#flann
```

  证据: nixpkgs package indexes: pkgs/by-name/fl/flann/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S flann
```

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

- Debian apt (92%):

```sh
sudo apt install flann-doc
```

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

- zypper (92%):

```sh
sudo zypper install flann-devel
```

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

## 软件包事实

- **软件包键:** brew:flann
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/flann>
- **版本:** 1.9.2
- **来源摘要:** Fast Library for Approximate Nearest Neighbors
- **主页:** <https://github.com/flann-lib/flann>
- **仓库:** <https://github.com/flann-lib/flann>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://github.com/flann-lib/flann/archive/refs/tags/1.9.2.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- flann_example_c (cli)
- flann_example_cpp (cli)
- flann_example_c (别名)
- flann_example_cpp (别名)

## 依赖

- hdf5
- lz4

## 构建依赖

- cmake
- pkgconf

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.9.2
- 本地数据: OK
- 上游仓库: https://github.com/flann-lib/flann
- 检测到的最新版本: 1.9.2 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

FLANN, the Fast Library for Approximate Nearest Neighbors, is a C++ library for fast approximate nearest-neighbor search in high-dimensional spaces. Its README describes both a collection of nearest-neighbor algorithms and automatic selection of an algorithm and parameters for a given dataset.

### 项目历史

The public repository history begins in 2007, and the project was documented academically in the 2009 Muja and Lowe VISAPP paper on automatic algorithm configuration for approximate nearest neighbors. The project later exposed C, MATLAB, Python, and Ruby bindings around the C++ implementation, making the research code useful as a packaged native library rather than only as an experiment.

### 采用历史

FLANN became a common dependency in scientific, machine-learning, and computer-vision packaging because it provides a reusable native nearest-neighbor engine with bindings. Homebrew packages it as a formula, while the official README points users to release archives and source checkout for development.

### 使用方式

Users bring FLANN into applications that need approximate nearest-neighbor lookup over feature vectors or other high-dimensional data. The bundled package executables are examples; the main package value is the library and its language bindings.

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

FLANN is package-nerd interesting because it is classic research software that became infrastructure: a C++ core, language bindings, release archives, example binaries, and packaging concerns around native builds rather than a single end-user CLI.

### 时间线

- 2007: Initial public repository import.
- 2009: Muja and Lowe publish the FLANN algorithm-configuration paper.
- 2012: 1.8.0 source tag appears in the public git history.
- 2021: 1.9.2 tag appears in the public git history.

### Related projects

- The official README ties FLANN to its C, MATLAB, Python, and Ruby bindings, and to approximate nearest-neighbor research rather than to a single desktop application.

### 来源

- <https://formulae.brew.sh/formula/flann>
- <https://github.com/flann-lib/flann>
- <https://raw.githubusercontent.com/flann-lib/flann/master/README.md>
- <https://www.cs.ubc.ca/research/flann/uploads/FLANN/flann_visapp09.pdf>


## 安全说明

library-like package without higher-risk signals.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** flann
- **Version Scheme:** 0
- **Revision:** 4
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Debian apt - flann-doc - 1.9.2+dfsg-2: normalized package name match | Debian stable package indexes: flann-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Fast Library for Approximate Nearest Neighbors - documentation | http://www.cs.ubc.ca/research/flann/
- Debian apt - libflann-dev - 1.9.2+dfsg-2+b2: normalized package name match | Debian stable package indexes: libflann-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Fast Library for Approximate Nearest Neighbors - development | http://www.cs.ubc.ca/research/flann/
- Debian apt - libflann1.9 - 1.9.2+dfsg-2+b2: normalized package name match | Debian stable package indexes: libflann1.9 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Fast Library for Approximate Nearest Neighbors - runtime | http://www.cs.ubc.ca/research/flann/
- Nix - flann: normalized package name match | nixpkgs package indexes: pkgs/by-name/fl/flann/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - flann-doc - 1.9.2+dfsg-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: flann-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Fast Library for Approximate Nearest Neighbors - documentation | http://www.cs.ubc.ca/research/flann/
- Ubuntu apt - libflann-dev - 1.9.2+dfsg-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libflann-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Fast Library for Approximate Nearest Neighbors - development | http://www.cs.ubc.ca/research/flann/
- Ubuntu apt - libflann1.9 - 1.9.2+dfsg-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libflann1.9 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Fast Library for Approximate Nearest Neighbors - runtime | http://www.cs.ubc.ca/research/flann/
- apk - flann - 1.9.2-r1: normalized package name match | Alpine Linux edge package indexes: flann from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fast Library for Approximate Nearest Neighbors | https://github.com/flann-lib/flann
- apk - flann-dev - 1.9.2-r1: normalized package name match | Alpine Linux edge package indexes: flann-dev from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fast Library for Approximate Nearest Neighbors (development files) | https://github.com/flann-lib/flann
- apk - flann-doc - 1.9.2-r1: normalized package name match | Alpine Linux edge package indexes: flann-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fast Library for Approximate Nearest Neighbors (documentation) | https://github.com/flann-lib/flann
- dnf - flann - 1.9.2-18.fc45: normalized package name match | Fedora Rawhide package metadata: flann from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Fast Library for Approximate Nearest Neighbors | http://www.cs.ubc.ca/research/flann
- dnf - flann-devel - 1.9.2-18.fc45: normalized package name match | Fedora Rawhide package metadata: flann-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development headers and libraries for flann | http://www.cs.ubc.ca/research/flann
- dnf - flann-static - 1.9.2-18.fc45: normalized package name match | Fedora Rawhide package metadata: flann-static from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Static libraries for flann | http://www.cs.ubc.ca/research/flann
- dnf - python3-flann - 1.9.2-18.fc45: normalized package name match | Fedora Rawhide package metadata: python3-flann from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Python bindings for flann | http://www.cs.ubc.ca/research/flann
- pacman - flann - 1.9.2-7: normalized package name match | Arch Linux sync databases: flann from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A library for performing fast approximate nearest neighbor searches in high dimensional spaces | https://github.com/flann-lib/flann
- zypper - flann-devel - 1.9.2-3.12: normalized package name match | openSUSE Tumbleweed package metadata: flann-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for flann | https://www.cs.ubc.ca/research/flann/


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [lz4](https://pkg.so/zh-hans/brew/lz4/) - Runtime dependency declared by Homebrew.
- [hdf5](https://pkg.so/zh-hans/brew/hdf5/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [colmap](https://pkg.so/zh-hans/brew/colmap/) - Popular package that depends on this formula.
- [pcl](https://pkg.so/zh-hans/brew/pcl/) - Popular package that depends on this formula.
- [rtabmap](https://pkg.so/zh-hans/brew/rtabmap/) - Popular package that depends on this formula.
- [visp](https://pkg.so/zh-hans/brew/visp/) - Popular package that depends on this formula.
- [ompl](https://pkg.so/zh-hans/brew/ompl/) - Popular package that depends on this formula.
- [liblinear](https://pkg.so/zh-hans/brew/liblinear/) - Shares pkgdb curated category or tags: cli, machine-learning, science.
- [qhull](https://pkg.so/zh-hans/brew/qhull/) - Shares pkgdb curated category or tags: cli, library, science.
- [geos](https://pkg.so/zh-hans/brew/geos/) - Shares pkgdb curated category or tags: cli, library, science.
- [sfcgal](https://pkg.so/zh-hans/brew/sfcgal/) - Shares pkgdb curated category or tags: cli, library, science.
- [glpk](https://pkg.so/zh-hans/brew/glpk/) - Shares pkgdb curated category or tags: cli, library, science.
- [librealsense](https://pkg.so/zh-hans/brew/librealsense/) - Shares pkgdb curated category or tags: cli, computer-vision, science.
- [wcslib](https://pkg.so/zh-hans/brew/wcslib/) - Shares pkgdb curated category or tags: cli, library, science.

## Combined YAML source

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


## 来源

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