macOS
brew install nnglocal Homebrew formula metadata
安装
brew install nnglocal Homebrew formula metadata
sudo apk add nngAlpine Linux edge package indexes · nng · 来源: dl-cdn.alpinelinux.org
sudo dnf install nngFedora Rawhide package metadata · nng · 来源: dl.fedoraproject.org
nix profile install nixpkgs#nngnixpkgs package indexes · pkgs/by-name/nn/nng/package.nix · 来源: api.github.com
sudo pacman -S nngArch Linux sync databases · nng · 来源: geo.mirror.pkgbuild.com
sudo apt install libnng-devDebian stable package indexes · libnng-dev · 来源: deb.debian.org
sudo zypper install libnng1openSUSE Tumbleweed package metadata · libnng1 · 来源: download.opensuse.org
概览
Nanomsg-next-generation -- light-weight brokerless messaging
历史
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.
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.
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.
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.
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
nngcat | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/nanomsg/nng
安装元数据
| 软件包键 | brew:nng |
|---|---|
| 版本 | 1.12.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/nng |
| 主页 | https://nng.nanomsg.org/ |
| 仓库 | https://github.com/nanomsg/nng |
| 上游文档 | https://github.com/nanomsg/nng#readme |
| 许可证 | MIT |
| 源码归档 | https://github.com/nanomsg/nng/archive/refs/tags/v1.12.0.tar.gz |
| 最后更新 | 2026-06-28T03:47:06Z |
| Pulse | updated |
| 构建依赖 | asciidoctor, cmake, ninja |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
libnng-dev 1.10.1-2
Lightweight Messaging Library - development
sudo apt install libnng-devlibnng-doc 1.10.1-2
Lightweight Messaging Library - HTML documentation
sudo apt install libnng-doclibnng1 1.10.1-2
Lightweight Messaging Library - shared library
sudo apt install libnng1nng-utils 1.10.1-2
Lightweight Messaging Library - utility
sudo apt install nng-utilsnng
nix profile install nixpkgs#nnglibnng-dev 1.7.2-1build2
Lightweight Messaging Library - development
sudo apt install libnng-devlibnng1 1.7.2-1build2
Lightweight Messaging Library - shared library
sudo apt install libnng1nng-utils 1.7.2-1build2
Lightweight Messaging Library - utility
sudo apt install nng-utilsnng 1.11-r0
Lightweight Broker-Less Messaging Library
sudo apk add nngnng-dev 1.11-r0
Lightweight Broker-Less Messaging Library (development files)
sudo apk add nng-devnng-doc 1.11-r0
Lightweight Broker-Less Messaging Library (documentation)
sudo apk add nng-docnng 1.9.0-5.fc44
Light-weight brokerless messaging
https://nanomsg.github.io/nng/
sudo dnf install nngnng-devel 1.9.0-5.fc44
Development files for the nng socket library
https://nanomsg.github.io/nng/
sudo dnf install nng-develnng-utils 1.9.0-5.fc44
Command line interface for communicating with nng
https://nanomsg.github.io/nng/
sudo dnf install nng-utilsnng 1.11-2
A lightweight, broker-less messaging library
sudo pacman -S nnglibnng1 1.11-1.2
Shared library for nng
https://nanomsg.github.io/nng/
sudo zypper install libnng1来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.