# Install flann with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Fast Library for Approximate Nearest Neighbors. Version 1.9.2 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install flann
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install flann
```

  Evidence: 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
```

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

- Debian apt (92%):

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

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

- dnf (92%):

```sh
sudo dnf install flann
```

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

- Nix (92%):

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

  Evidence: 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
```

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

- zypper (92%):

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

  Evidence: openSUSE Tumbleweed package metadata: flann-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:flann
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/flann>
- **Version:** 1.9.2
- **Source summary:** Fast Library for Approximate Nearest Neighbors
- **Homepage:** <https://github.com/flann-lib/flann>
- **Repository:** <https://github.com/flann-lib/flann>
- **Upstream docs:** <https://github.com/flann-lib/flann#readme>
- **License:** BSD-3-Clause
- **Source archive:** <https://github.com/flann-lib/flann/archive/refs/tags/1.9.2.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- flann_example_c (cli)
- flann_example_cpp (cli)
- flann_example_c (alias)
- flann_example_cpp (alias)

## Dependencies

- hdf5
- lz4

## Build dependencies

- cmake
- pkgconf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.9.2
- Local data: ok
- Upstream repository: https://github.com/flann-lib/flann
- Upstream latest detected: 1.9.2 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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>


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

- **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

## Other Package-Manager Records

- 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-16.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Fast Library for Approximate Nearest Neighbors | http://www.cs.ubc.ca/research/flann
- dnf - flann-devel - 1.9.2-16.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development headers and libraries for flann | http://www.cs.ubc.ca/research/flann
- dnf - flann-static - 1.9.2-16.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Static libraries for flann | http://www.cs.ubc.ca/research/flann
- dnf - python3-flann - 1.9.2-16.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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.10: normalized package name match | openSUSE Tumbleweed package metadata: flann-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for flann | https://www.cs.ubc.ca/research/flann/


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [hdf5](https://www.automicvault.com/pkg/brew/hdf5/) - Runtime dependency declared by Homebrew.
- [lz4](https://www.automicvault.com/pkg/brew/lz4/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [colmap](https://www.automicvault.com/pkg/brew/colmap/) - Popular package that depends on this formula.
- [pcl](https://www.automicvault.com/pkg/brew/pcl/) - Popular package that depends on this formula.
- [rtabmap](https://www.automicvault.com/pkg/brew/rtabmap/) - Popular package that depends on this formula.
- [visp](https://www.automicvault.com/pkg/brew/visp/) - Popular package that depends on this formula.
- [tinysvm](https://www.automicvault.com/pkg/brew/tinysvm/) - Shares av.db curated category or tags: cli, library, machine-learning, science.
- [mlpack](https://www.automicvault.com/pkg/brew/mlpack/) - Shares av.db curated category or tags: cli, library, machine-learning, science.
- [opencv](https://www.automicvault.com/pkg/brew/opencv/) - Shares av.db curated category or tags: cli, computer-vision, machine-learning, science.
- [btllib](https://www.automicvault.com/pkg/brew/btllib/) - Shares av.db curated category or tags: cli, library, science.
- [clhep](https://www.automicvault.com/pkg/brew/clhep/) - Shares av.db curated category or tags: cli, library, science.
- [flexiblas](https://www.automicvault.com/pkg/brew/flexiblas/) - Shares av.db curated category or tags: cli, library, science.
- [g2o](https://www.automicvault.com/pkg/brew/g2o/) - Shares av.db curated category or tags: cli, computer-vision, science.
- [librealsense](https://www.automicvault.com/pkg/brew/librealsense/) - Local package facts share a topical domain. Shared terms: cli, computer, computer-vision, science, vision.

## Combined YAML source

View the package source record on GitHub. [combined/flann.yml](https://github.com/automic-vault/db/blob/main/combined/flann.yml)


## Sources

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