# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 1.9.2
- **来源摘要:** Fast Library for Approximate Nearest Neighbors
- **主页:** <https://github.com/flann-lib/flann>
- **仓库:** <https://github.com/flann-lib/flann>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
