# ncnn mit Homebrew, dnf, Nix, pacman, zypper installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für ncnn in AI-Agent-Workflows.

## Installation

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

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install ncnn
```

  Evidenz: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install ncnn
```

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

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

  Evidenz: 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 ncnn
```

  Evidenz: openSUSE Tumbleweed package metadata: ncnn from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Paketfakten

- **Paketschlüssel:** brew:ncnn
- **Paketmanager:** Homebrew
- **Paketmanager-Seite:** <https://formulae.brew.sh/formula/ncnn>
- **Version:** 20260526
- **Quellzusammenfassung:** High-performance neural network inference framework
- **Homepage:** <https://github.com/Tencent/ncnn>
- **Repository:** <https://github.com/Tencent/ncnn>
- **Lizenz:** BSD-3-Clause
- **Quellarchiv:** <https://github.com/Tencent/ncnn/archive/refs/tags/20260526.tar.gz>
- **Zuletzt aktualisiert:** 2026-06-25T13:37:56+02:00
- **Generiert:** 2026-08-04T22:13:35+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)

## Abhängigkeiten

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

## Build-Abhängigkeiten

- cmake

## Installationsverhalten

- Post-install-Hook: nicht definiert
- Bottle: verfügbar auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version und Aktualität

- Seite generiert: 2026-08-04
- Manager-Version: 20260526
- Manager aktualisiert: 2026-06-25
- lokale Daten: OK
- Upstream-Repository: https://github.com/Tencent/ncnn
- Info: No cached GitHub release or tag data was available.
## Projektgeschichte und Nutzung

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.

### Projektgeschichte

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.

### Adoptionsgeschichte

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.

### Wie es verwendet wird

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.

### Warum Paket-Nerds sich dafür interessieren

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.

### Zeitleiste

- 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

### Quellen

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


## Sicherheitshinweise

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

- **Geiger-Risiko:** blue / mittel
- broad file, network, media, or database tool signal

## Details aus der Quelldatenbank

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

## Andere Paketmanager-Einträge

- 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-5.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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | A high-performance neural network inference framework | https://github.com/Tencent/ncnn
- dnf - ncnn-devel - 20250916-5.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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files for ncnn | https://github.com/Tencent/ncnn
- pacman - ncnn - 20260526-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.10: normalized package name match | openSUSE Tumbleweed package metadata: libncnn1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | NCNN library | https://github.com/Tencent/ncnn
- zypper - ncnn - 20250916-1.10: normalized package name match | openSUSE Tumbleweed package metadata: ncnn from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A high-performance neural network inference framework | https://github.com/Tencent/ncnn
- zypper - ncnn-devel - 20250916-1.10: normalized package name match | openSUSE Tumbleweed package metadata: ncnn-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development tools for ncnn | https://github.com/Tencent/ncnn


## Verwandte Links

- [Source-control packages](https://pkg.so/de/source-control-tools/) - Belongs to a source-control command family.
- [MCP tool packages](https://pkg.so/de/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [Secret-risk packages](https://pkg.so/de/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [AI and agent packages](https://pkg.so/de/ai-agent-tools/) - Matched AI model, agent, coding-agent, orchestration, or MCP metadata.
- [protobuf](https://pkg.so/de/brew/protobuf/) - Runtime dependency declared by Homebrew.
- [spirv-tools](https://pkg.so/de/brew/spirv-tools/) - Runtime dependency declared by Homebrew.
- [molten-vk](https://pkg.so/de/brew/molten-vk/) - Runtime dependency declared by Homebrew.
- [glslang](https://pkg.so/de/brew/glslang/) - Runtime dependency declared by Homebrew.
- [cmake](https://pkg.so/de/brew/cmake/) - Build dependency declared by Homebrew.
- [opencv](https://pkg.so/de/brew/opencv/) - Shares pkgdb curated category or tags: ai, cli, computer-vision, machine-learning, ml-tools.
- [text-embeddings-inference](https://pkg.so/de/brew/text-embeddings-inference/) - Shares pkgdb curated category or tags: ai, cli, inference, machine-learning, ml-tools.
- [djl-serving](https://pkg.so/de/brew/djl-serving/) - Shares pkgdb curated category or tags: ai, cli, inference, machine-learning, ml-tools.
- [tesseract](https://pkg.so/de/brew/tesseract/) - Shares pkgdb curated category or tags: ai, cli, machine-learning, ml-tools.
- [openvino](https://pkg.so/de/brew/openvino/) - Shares pkgdb curated category or tags: ai, cli, computer-vision, ml-tools.
- [pytorch](https://pkg.so/de/brew/pytorch/) - Shares pkgdb curated category or tags: ai, cli, machine-learning, ml-tools.
- [mlx](https://pkg.so/de/brew/mlx/) - Shares pkgdb curated category or tags: ai, cli, machine-learning, ml-tools.
- [hf](https://pkg.so/de/brew/hf/) - Shares pkgdb curated category or tags: ai, cli, machine-learning, ml-tools.
- [mlx-lm](https://pkg.so/de/brew/mlx-lm/) - Local package facts share a topical domain. Shared terms: ai, cli, inference, learning, machine.

## Combined YAML source

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


## Quellen

- 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
