# nng mit Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper installieren

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

## Installation

```sh
sudo av install brew:nng
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install nng
```

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install nng
```

  Evidenz: MacPorts ports tree: devel/nng/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add nng
```

  Evidenz: Alpine Linux edge package indexes: nng from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install nng
```

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

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

- pacman (92%):

```sh
sudo pacman -S nng
```

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

- Debian apt (92%):

```sh
sudo apt install libnng-dev
```

  Evidenz: Debian stable package indexes: libnng-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- zypper (92%):

```sh
sudo zypper install libnng1
```

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

## Paketfakten

- **Paketschlüssel:** brew:nng
- **Paketmanager:** Homebrew
- **Paketmanager-Seite:** <https://formulae.brew.sh/formula/nng>
- **Version:** 1.12.0
- **Quellzusammenfassung:** Nanomsg-next-generation -- light-weight brokerless messaging
- **Homepage:** <https://nng.nanomsg.org/>
- **Repository:** <https://github.com/nanomsg/nng>
- **Upstream-Dokumentation:** <https://nng.nanomsg.org/>
- **Lizenz:** MIT
- **Quellarchiv:** <https://github.com/nanomsg/nng/archive/refs/tags/v1.12.0.tar.gz>
- **Zuletzt aktualisiert:** 2026-06-28T03:47:06Z
- **Generiert:** 2026-08-04T22:13:35+00:00

## Executables

- nngcat (cli)
- nngcat (Alias)

## Build-Abhängigkeiten

- asciidoctor
- cmake
- ninja

## 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: 1.12.0
- Manager aktualisiert: 2026-06-28
- lokale Daten: OK
- Upstream-Repository: https://github.com/nanomsg/nng
- neueste erkannte Version: v1.12.0 (aktuell)
## Projektgeschichte und Nutzung

NNG, short for nanomsg-next-generation, is a C messaging library that reworks nanomsg's brokerless Scalability Protocols model with stronger production, async, transport, and security foundations.

### Projektgeschichte

The upstream README explicitly describes NNG as a rewrite of the Scalability Protocols library known as nanomsg, keeping compatibility with the original while adding significant capabilities. Its self-description places it in the same family as nanomsg and, to a lesser extent, ZeroMQ: lightweight brokerless messaging for recurring patterns such as publish/subscribe, request/reply, and service discovery.

The rewrite emphasized reliability, scalability, maintainability, extensibility, security, and usability. Notable package-level changes include a C11/CMake build, a custom asynchronous I/O framework, TLS-capable transports, and APIs intended to be more intuitive for concurrent programs.

### Adoptionsgeschichte

NNG's adoption is developer-library adoption: it is packaged as libnng-dev or nng across Homebrew, Debian/Ubuntu, Fedora, Alpine, Arch, Nix, MacPorts, and openSUSE, and it exposes nngcat as a CLI utility. The repository also documents commercial support and sponsorship, which is meaningful for a low-level C messaging library used in production systems.

Compatibility was a core adoption strategy. The project documented migration from legacy libnanomsg and offered wire/API compatibility for many nanomsg and mangos applications, letting existing Scalability Protocols users move incrementally instead of rewriting their messaging layer at once.

### Wie es verwendet wird

Developers use NNG when they want simple message-pattern APIs without standing up a broker. Common package-nerd experiments use nngcat to test pub/sub or req/rep endpoints, then embed libnng in C or bind through another language for IPC, TCP, WebSocket, TLS, or in-process transport.

The practical distinction from heavier messaging stacks is that NNG tries to own the boring plumbing: reconnects, connection management, async dispatch, and protocol state. That makes it attractive for embedded systems, appliances, developer tools, and service components where a full broker is excessive.

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

NNG matters because it is the active successor path for nanomsg-style messaging. It preserves the idea that common distributed communication patterns can be expressed as small socket-like protocols while modernizing the implementation enough for safer concurrent production use.

### Zeitleiste

- {'event': "NNG emerged as a next-generation rewrite of nanomsg's Scalability Protocols library.", 'year': '2010s'}
- {'date': '2026-06-28', 'event': 'The GitHub repository page listed Version 1.12 Bug Fix Release as the latest release.'}

### Related projects

- nanomsg
- ZeroMQ
- mangos
- nngcat

### Quellen

- <https://github.com/nanomsg/nng>
- <https://github.com/nanomsg/nng/blob/main/docs/ref/migrate/nanomsg.md>
- <https://nng.nanomsg.org/>
- <https://nng.nanomsg.org/man/tip/nng.7.html>
- <https://raw.githubusercontent.com/nanomsg/nng/main/README.md>


## Sicherheitshinweise

narrow executable package without higher-risk signals.

- **Geiger-Risiko:** grün / niedrig
- narrow executable package without higher-risk signals

## Details aus der Quelldatenbank

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

## Andere Paketmanager-Einträge

- Debian apt - libnng-dev - 1.10.1-2: normalized package name match | Debian stable package indexes: libnng-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Lightweight Messaging Library - development | https://nng.nanomsg.org/
- Debian apt - libnng-doc - 1.10.1-2: normalized package name match | Debian stable package indexes: libnng-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Lightweight Messaging Library - HTML documentation | https://nng.nanomsg.org/
- Debian apt - libnng1 - 1.10.1-2: normalized package name match | Debian stable package indexes: libnng1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Lightweight Messaging Library - shared library | https://nng.nanomsg.org/
- Debian apt - nng-utils - 1.10.1-2: normalized package name match | Debian stable package indexes: nng-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Lightweight Messaging Library - utility | https://nng.nanomsg.org/
- Nix - nng: normalized package name match | nixpkgs package indexes: pkgs/by-name/nn/nng/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libnng-dev - 1.7.2-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libnng-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Lightweight Messaging Library - development | https://nng.nanomsg.org/
- Ubuntu apt - libnng1 - 1.7.2-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libnng1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Lightweight Messaging Library - shared library | https://nng.nanomsg.org/
- Ubuntu apt - nng-utils - 1.7.2-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: nng-utils from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Lightweight Messaging Library - utility | https://nng.nanomsg.org/
- apk - nng - 1.12.0-r0: normalized package name match | Alpine Linux edge package indexes: nng from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Lightweight Broker-Less Messaging Library | https://nng.nanomsg.org/
- apk - nng-dev - 1.12.0-r0: normalized package name match | Alpine Linux edge package indexes: nng-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Lightweight Broker-Less Messaging Library (development files) | https://nng.nanomsg.org/
- apk - nng-doc - 1.12.0-r0: normalized package name match | Alpine Linux edge package indexes: nng-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Lightweight Broker-Less Messaging Library (documentation) | https://nng.nanomsg.org/
- dnf - nng - 1.9.0-6.fc45: normalized package name match | Fedora Rawhide package metadata: nng from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Light-weight brokerless messaging | https://nanomsg.github.io/nng/
- dnf - nng-devel - 1.9.0-6.fc45: normalized package name match | Fedora Rawhide package metadata: nng-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files for the nng socket library | https://nanomsg.github.io/nng/
- dnf - nng-utils - 1.9.0-6.fc45: normalized package name match | Fedora Rawhide package metadata: nng-utils from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Command line interface for communicating with nng | https://nanomsg.github.io/nng/
- pacman - nng - 1.12.0-1: normalized package name match | Arch Linux sync databases: nng from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A lightweight, broker-less messaging library | https://nng.nanomsg.org/
- zypper - libnng1 - 1.12.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: libnng1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Shared library for nng | https://nanomsg.github.io/nng/


## Verwandte Links

- [Terminal utility packages](https://pkg.so/de/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/de/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/de/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/de/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [cmake](https://pkg.so/de/brew/cmake/) - Build dependency declared by Homebrew.
- [ninja](https://pkg.so/de/brew/ninja/) - Build dependency declared by Homebrew.
- [asciidoctor](https://pkg.so/de/brew/asciidoctor/) - Build dependency declared by Homebrew.
- [activemq-cpp](https://pkg.so/de/brew/activemq-cpp/) - Shares pkgdb curated category or tags: cli, developer-tools, messaging.
- [glib](https://pkg.so/de/brew/glib/) - Shares pkgdb curated category or tags: c, cli, developer-tools, library.
- [libdeflate](https://pkg.so/de/brew/libdeflate/) - Shares pkgdb curated category or tags: c, cli, developer-tools, library.
- [libdatrie](https://pkg.so/de/brew/libdatrie/) - Shares pkgdb curated category or tags: c, cli, developer-tools, library.
- [nspr](https://pkg.so/de/brew/nspr/) - Shares pkgdb curated category or tags: c, cli, developer-tools, library.
- [apr](https://pkg.so/de/brew/apr/) - Shares pkgdb curated category or tags: c, cli, developer-tools, library.
- [md4c](https://pkg.so/de/brew/md4c/) - Shares pkgdb curated category or tags: c, cli, developer-tools, library.
- [gflags](https://pkg.so/de/brew/gflags/) - Shares pkgdb curated category or tags: c, cli, developer-tools, library.
- [protobuf-c](https://pkg.so/de/brew/protobuf-c/) - Local package facts share a topical domain. Shared terms: c, cli, developer, developer-tools, generation.
- [qrencode](https://pkg.so/de/brew/qrencode/) - Local package facts share a topical domain. Shared terms: c, cli, developer, developer-tools, generation.
- [rabbitmq-c](https://pkg.so/de/brew/rabbitmq-c/) - Local package facts share a topical domain. Shared terms: c, cli, developer, developer-tools, messaging.

## Combined YAML source

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