Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper 安装 nng

查看 nng 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install nng

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install nng

MacPorts ports tree · devel/nng/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add nng

Alpine Linux edge package indexes · nng · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install nng

Fedora Rawhide package metadata · nng · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#nng

nixpkgs package indexes · pkgs/by-name/nn/nng/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S nng

Arch Linux sync databases · nng · 来源: geo.mirror.pkgbuild.com

Debian apt已验证 · 92%
sudo apt install libnng-dev

Debian stable package indexes · libnng-dev · 来源: deb.debian.org

openSUSE zypper已验证 · 92%
sudo zypper install libnng1

openSUSE Tumbleweed package metadata · libnng1 · 来源: download.opensuse.org

概览

软件包摘要

Nanomsg-next-generation -- light-weight brokerless messaging

命令和别名

  • nngcat

历史

项目历史与用法

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.

时间线

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

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 3 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
nngcatcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本1.12.0
管理器更新时间2026-06-28
本地数据OK
上游当前
检测到的最新版本v1.12.0

https://github.com/nanomsg/nng

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键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
Pulseupdated
构建依赖asciidoctor, cmake, ninja
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namenng
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

libnng-dev 1.10.1-2

Lightweight Messaging Library - development

https://nng.nanomsg.org/

sudo apt install libnng-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: nng
  • 2 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Nng
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libnng-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libnng-doc 1.10.1-2

Lightweight Messaging Library - HTML documentation

https://nng.nanomsg.org/

sudo apt install libnng-doc
  • Section: doc
  • Architecture: all
  • Source Package: nng
  • normalized package name match
  • 匹配方式:Nng
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libnng-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libnng1 1.10.1-2

Lightweight Messaging Library - shared library

https://nng.nanomsg.org/

sudo apt install libnng1
  • Section: devel
  • Architecture: amd64
  • Source Package: nng
  • 4 依赖
  • normalized package name match
  • 匹配方式:Nng
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libnng1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

nng-utils 1.10.1-2

Lightweight Messaging Library - utility

https://nng.nanomsg.org/

sudo apt install nng-utils
  • Section: devel
  • Architecture: amd64
  • Source Package: nng
  • 2 依赖
  • normalized package name match
  • 匹配方式:Nng
Debian stable package indexes · deb.debian.org · Debian stable package indexes: nng-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

nng

nix profile install nixpkgs#nng
  • normalized package name match
  • 匹配方式:Nng
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/nn/nng/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libnng-dev 1.7.2-1build2

Lightweight Messaging Library - development

https://nng.nanomsg.org/

sudo apt install libnng-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: nng
  • 2 依赖
  • normalized package name match
  • 匹配方式:Nng
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libnng-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libnng1 1.7.2-1build2

Lightweight Messaging Library - shared library

https://nng.nanomsg.org/

sudo apt install libnng1
  • Section: universe/devel
  • Architecture: amd64
  • Source Package: nng
  • 4 依赖
  • normalized package name match
  • 匹配方式:Nng
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libnng1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

nng-utils 1.7.2-1build2

Lightweight Messaging Library - utility

https://nng.nanomsg.org/

sudo apt install nng-utils
  • Section: universe/devel
  • Architecture: amd64
  • Source Package: nng
  • 2 依赖
  • normalized package name match
  • 匹配方式:Nng
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: nng-utils from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

nng 1.11-r0

Lightweight Broker-Less Messaging Library

https://nng.nanomsg.org/

sudo apk add nng
  • License: MIT
  • Architecture: x86_64
  • Source Package: nng
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nng
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nng from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

nng-dev 1.11-r0

Lightweight Broker-Less Messaging Library (development files)

https://nng.nanomsg.org/

sudo apk add nng-dev
  • License: MIT
  • Architecture: x86_64
  • Source Package: nng
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nng
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nng-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

nng-doc 1.11-r0

Lightweight Broker-Less Messaging Library (documentation)

https://nng.nanomsg.org/

sudo apk add nng-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: nng
  • normalized package name match
  • 匹配方式:Nng
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nng-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

nng 1.9.0-5.fc44

Light-weight brokerless messaging

https://nanomsg.github.io/nng/

sudo dnf install nng
  • License: MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: nng
  • 5 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Nng
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: nng from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

nng-devel 1.9.0-5.fc44

Development files for the nng socket library

https://nanomsg.github.io/nng/

sudo dnf install nng-devel
  • License: MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: nng
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Nng
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: nng-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

nng-utils 1.9.0-5.fc44

Command line interface for communicating with nng

https://nanomsg.github.io/nng/

sudo dnf install nng-utils
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: nng
  • 4 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nng
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: nng-utils from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

nng 1.11-2

A lightweight, broker-less messaging library

https://nng.nanomsg.org/

sudo pacman -S nng
  • License: MIT
  • Architecture: x86_64
  • 2 依赖
  • normalized package name match
  • 匹配方式:Nng
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: nng from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

libnng1 1.11-1.2

Shared library for nng

https://nanomsg.github.io/nng/

sudo zypper install libnng1
  • License: MIT
  • Category: System/Libraries
  • Architecture: x86_64
  • Source Package: nng
  • 2 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Nng
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libnng1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment