# Installer nng avec Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de nng pour les workflows d'agents IA.

## installation

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

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install nng
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install nng
```

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

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

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

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

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

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

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

## Faits du paquet

- **Clé du paquet:** brew:nng
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/nng>
- **Version:** 1.12.0
- **Résumé source:** Nanomsg-next-generation -- light-weight brokerless messaging
- **Page d'accueil:** <https://nng.nanomsg.org/>
- **Dépôt:** <https://github.com/nanomsg/nng>
- **Docs amont:** <https://nng.nanomsg.org/>
- **Licence:** MIT
- **Archive source:** <https://github.com/nanomsg/nng/archive/refs/tags/v1.12.0.tar.gz>
- **Dernière mise à jour:** 2026-06-28T03:47:06Z
- **Généré:** 2026-08-04T22:13:35+00:00

## exécutables

- nngcat (cli)
- nngcat (alias)

## Dépendances de compilation

- asciidoctor
- cmake
- ninja

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version et fraîcheur

- page générée: 2026-08-04
- version du gestionnaire: 1.12.0
- gestionnaire mis à jour: 2026-06-28
- données locales: OK
- dépôt amont: https://github.com/nanomsg/nng
- dernière version détectée: v1.12.0 (à jour)
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

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

### Sources

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


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Détails de la base source

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

## Autres enregistrements de gestionnaires de paquets

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


## Liens liés

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


## Sources

- 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
