# Install ncnn with Homebrew, dnf, Nix, pacman, zypper

High-performance neural network inference framework. Version 20260526 via Homebrew; verified 2026-06-25.

## Install

```sh
sudo av install brew:ncnn
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install ncnn
```

  Evidence: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install ncnn
```

  Evidence: Fedora Rawhide package metadata: ncnn 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#ncnn
```

  Evidence: nixpkgs package indexes: pkgs/by-name/nc/ncnn/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S ncnn
```

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

- zypper (92%):

```sh
sudo zypper install libncnn1
```

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

## Package facts

- **Package key:** brew:ncnn
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/ncnn>
- **Version:** 20260526
- **Source summary:** High-performance neural network inference framework
- **Homepage:** <https://github.com/Tencent/ncnn>
- **Repository:** <https://github.com/Tencent/ncnn>
- **Upstream docs:** <https://github.com/Tencent/ncnn>
- **License:** BSD-3-Clause
- **Source archive:** <https://github.com/Tencent/ncnn/archive/refs/tags/20260526.tar.gz>
- **Last updated:** 2026-06-25T13:37:56+02:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- caffe2ncnn (cli)
- darknet2ncnn (cli)
- mxnet2ncnn (cli)
- ncnn2int8 (cli)
- ncnn2mem (cli)
- ncnn2table (cli)
- ncnnmerge (cli)
- ncnnoptimize (cli)
- caffe2ncnn (alias)
- darknet2ncnn (alias)
- mxnet2ncnn (alias)
- ncnn2int8 (alias)
- ncnn2mem (alias)
- ncnn2table (alias)
- ncnnmerge (alias)
- ncnnoptimize (alias)

## Dependencies

- abseil
- glslang
- libomp
- molten-vk
- protobuf
- spirv-tools

## Build dependencies

- cmake

## 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: 20260526
- Package-manager updated: 2026-06-25
- Local data: ok
- Upstream repository: https://github.com/Tencent/ncnn
- info: No cached GitHub release or tag data was available.
## Project history and usage

ncnn is Tencent's open-source neural-network inference runtime for mobile, embedded, desktop, browser, and edge deployment. Its niche is small, dependency-light inference: the upstream README emphasizes no third-party runtime dependencies, CPU and Vulkan GPU backends, explicit low-memory allocator design, and conversion tools such as pnnx for PyTorch and ONNX workflows.

### Project history

Tencent presentations describe the ncnn project as dating from 2017, with open collaboration and Vulkan acceleration as central design points. That timing put it in the wave of mobile inference runtimes that appeared after deep-learning deployment moved from server GPUs into phones and edge devices.

### Adoption history

Upstream states that ncnn is used in Tencent applications including QQ, Qzone, WeChat, and Pitu. Outside Tencent, its adoption pattern is typical for low-level ML infrastructure: package-manager availability, examples for object detection and vision models, and use by developers who want a C++ runtime without TensorFlow Lite or ONNX Runtime-sized baggage.

### How it is used

Package users usually install ncnn for the converter and optimizer executables as much as for the library. A common flow is export from PyTorch through pnnx, produce .param and .bin model files, run optimization or int8 tooling, and embed the resulting model in a C++ or mobile application using ncnn::Net.

### Why package nerds care

For package maintainers, ncnn is interesting because it is a fast-moving C++/Vulkan project that exposes both libraries and many small CLI tools. It is also a useful example of a Homebrew formula where the command-line surface is mostly build/deployment tooling around a library rather than one end-user command.

### Timeline

- 2017: Tencent presentation material describes ncnn as active since 2017.
- 2020s: README documents pnnx-based PyTorch/ONNX conversion and CPU/Vulkan deployment across mobile, desktop, browser, and edge targets.

### Related projects

- PyTorch, ONNX, pnnx, Vulkan, TensorFlow, Caffe, MXNet, Darknet

### Sources

- <https://formulae.brew.sh/formula/ncnn>
- <https://github.com/Tencent/ncnn>
- <https://www.khronos.org/developers/linkto/ncnn-universal-neural-network-inference-with-vulkan>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

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

## Other Package-Manager Records

- Nix - ncnn: normalized package name match | nixpkgs package indexes: pkgs/by-name/nc/ncnn/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - ncnn - 20250916-3.fc45: normalized package name match | Fedora Rawhide package metadata: ncnn from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A high-performance neural network inference framework | https://github.com/Tencent/ncnn
- dnf - ncnn-devel - 20250916-3.fc45: normalized package name match | Fedora Rawhide package metadata: ncnn-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for ncnn | https://github.com/Tencent/ncnn
- pacman - ncnn - 20260113-6: normalized package name match | Arch Linux sync databases: ncnn from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | High-performance neural network inference framework optimized for the mobile platform | https://github.com/Tencent/ncnn
- zypper - libncnn1 - 20250916-1.8: normalized package name match | openSUSE Tumbleweed package metadata: libncnn1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | NCNN library | https://github.com/Tencent/ncnn
- zypper - ncnn - 20250916-1.8: normalized package name match | openSUSE Tumbleweed package metadata: ncnn from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A high-performance neural network inference framework | https://github.com/Tencent/ncnn
- zypper - ncnn-devel - 20250916-1.8: normalized package name match | openSUSE Tumbleweed package metadata: ncnn-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development tools for ncnn | https://github.com/Tencent/ncnn


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [glslang](https://www.automicvault.com/pkg/brew/glslang/) - Runtime dependency declared by Homebrew.
- [molten-vk](https://www.automicvault.com/pkg/brew/molten-vk/) - Runtime dependency declared by Homebrew.
- [protobuf](https://www.automicvault.com/pkg/brew/protobuf/) - Runtime dependency declared by Homebrew.
- [spirv-tools](https://www.automicvault.com/pkg/brew/spirv-tools/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [djl-serving](https://www.automicvault.com/pkg/brew/djl-serving/) - Shares av.db curated category or tags: cli, data, inference, machine-learning.
- [classifier](https://www.automicvault.com/pkg/brew/classifier/) - Shares av.db curated category or tags: cli, data, machine-learning.
- [lightgbm](https://www.automicvault.com/pkg/brew/lightgbm/) - Shares av.db curated category or tags: cli, data, machine-learning.
- [mallet](https://www.automicvault.com/pkg/brew/mallet/) - Shares av.db curated category or tags: cli, data, machine-learning.
- [rgf](https://www.automicvault.com/pkg/brew/rgf/) - Shares av.db curated category or tags: cli, data, machine-learning.
- [vowpal-wabbit](https://www.automicvault.com/pkg/brew/vowpal-wabbit/) - Shares av.db curated category or tags: cli, data, machine-learning.
- [mitie](https://www.automicvault.com/pkg/brew/mitie/) - Shares av.db curated category or tags: cli, data, machine-learning.
- [sentencepiece](https://www.automicvault.com/pkg/brew/sentencepiece/) - Shares av.db curated category or tags: cli, data, machine-learning.

## Combined YAML source

View the package source record on GitHub. [combined/ncnn.yml](https://github.com/automic-vault/db/blob/main/combined/ncnn.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
