macOS
brew install nanomsglocal Homebrew formula metadata
安装
brew install nanomsglocal Homebrew formula metadata
sudo apk add nanomsgAlpine Linux edge package indexes · nanomsg · 来源: dl-cdn.alpinelinux.org
sudo dnf install nanomsgFedora Rawhide package metadata · nanomsg · 来源: dl.fedoraproject.org
nix profile install nixpkgs#nanomsgnixpkgs package indexes · pkgs/by-name/na/nanomsg/package.nix · 来源: api.github.com
sudo pacman -S nanomsgArch Linux sync databases · nanomsg · 来源: geo.mirror.pkgbuild.com
sudo apt install libnanomsg-devDebian stable package indexes · libnanomsg-dev · 来源: deb.debian.org
sudo zypper install libnanomsg6openSUSE Tumbleweed package metadata · libnanomsg6 · 来源: download.opensuse.org
概览
Socket library in C
历史
nanomsg is a C socket library for brokerless messaging patterns, described upstream as a way to make networking fast, scalable, and easy to use through common communication patterns such as pair, bus, request/reply, publish/subscribe, pipeline, and survey.
The project grew out of Martin Sustrik's post-ZeroMQ design work. nanomsg's own documentation preserves the historical motivation as a comparison with ZeroMQ by the original author of both projects: MIT licensing, a POSIX-like C API, implementation in C rather than C++, formal protocol/transport APIs, and different threading behavior were central design goals.
The GitHub repository was created on 2012-10-10. Later, Garrett D'Amore's NNG became the successor path: the nanomsg homepage says nanomsg has largely been superseded by NNG, and the documentation calls the C reference implementation sustaining-mode while describing NNG as the modern reimplementation.
nanomsg accumulated a broad binding ecosystem despite later being superseded: the upstream documentation lists bindings or implementations for C, C++, Clojure, D, Erlang, Fortran, Go, Haskell, Java, JavaScript, Lua, .NET, OCaml, Perl, PHP, Python, R, Ruby, Rust, Scheme, Smalltalk, and more.
GitHub API data fetched on 2026-07-01 showed 6,285 stars and 1,034 forks, reflecting historical mindshare. Homebrew's formula JSON generated on 2026-07-01 reported only 382 installs over 365 days and 181 installs-on-request over 365 days, which is consistent with a legacy library that remains packaged but is no longer the main recommendation.
Users link against the C library and use its BSD-socket-like API to build message-oriented communication without a broker. Typical choices are REQREP for service clusters, PUBSUB for fanout, PIPELINE for fan-in/fan-out work distribution, BUS for many-to-many messaging, and IPC/TCP/WebSocket transports depending on deployment.
Package nerds often keep `nanomsg` around for older applications or language bindings that still target libnanomsg. New work should usually evaluate `nng` first because NNG keeps wire compatibility while adding the maintained API and implementation path.
nanomsg matters historically as a clean-room C rethinking of ZeroMQ-style scalability protocols and as the ancestor of NNG. Its Homebrew package is less about trend adoption and more about preserving buildability for software that already chose the nanomsg API or wire protocols.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
nanocat | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/nanomsg/nanomsg
安装元数据
| 软件包键 | brew:nanomsg |
|---|---|
| 版本 | 1.2.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/nanomsg |
| 主页 | https://nanomsg.org/ |
| 仓库 | https://github.com/nanomsg/nanomsg |
| 上游文档 | https://github.com/nanomsg/nanomsg#readme |
| 许可证 | MIT |
| 源码归档 | https://github.com/nanomsg/nanomsg/archive/refs/tags/1.2.2.tar.gz |
| 构建依赖 | cmake |
| 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 | nanomsg |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
libnanomsg-dev 1.1.5+dfsg-1.1+b1
nanomsg development files
sudo apt install libnanomsg-devlibnanomsg5 1.1.5+dfsg-1.1+b1
high-performance implementation of scalability libraries
sudo apt install libnanomsg5nanomsg-utils 1.1.5+dfsg-1.1+b1
nanomsg utilities
sudo apt install nanomsg-utilsnanomsg
nix profile install nixpkgs#nanomsglibnanomsg-dev 1.1.5+dfsg-1.1
nanomsg development files
sudo apt install libnanomsg-devlibnanomsg5 1.1.5+dfsg-1.1
high-performance implementation of scalability libraries
sudo apt install libnanomsg5nanomsg-utils 1.1.5+dfsg-1.1
nanomsg utilities
sudo apt install nanomsg-utilsnanomsg 1.2.2-r0
Socket library that provides several common communication patterns
sudo apk add nanomsgnanomsg-dev 1.2.2-r0
Socket library that provides several common communication patterns (development files)
sudo apk add nanomsg-devnanomsg-doc 1.2.2-r0
Socket library that provides several common communication patterns (documentation)
sudo apk add nanomsg-docnanomsg 1.2.2-2.fc44
Socket library that provides several common communication patterns
sudo dnf install nanomsgnanomsg-devel 1.2.2-2.fc44
Development files for nanomsg
sudo dnf install nanomsg-develnanomsg-doc 1.2.2-2.fc44
Documentation for nanomsg
sudo dnf install nanomsg-docnanomsg 1.2.2-1
Simple high-performance implementation of several "scalability protocols"
sudo pacman -S nanomsglibnanomsg6 1.2.2-1.3
Shared library for nanomsg
sudo zypper install libnanomsg6nanomsg-devel 1.2.2-1.3
Header files for nanomsg
sudo zypper install nanomsg-devel来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.