# nanomsg を Homebrew, apk, dnf, Nix, pacman, apt, zypper でインストール

nanomsg のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:nanomsg
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install nanomsg
```

  証拠: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add nanomsg
```

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

- dnf (92%):

```sh
sudo dnf install nanomsg
```

  証拠: Fedora Rawhide package metadata: nanomsg 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#nanomsg
```

  証拠: nixpkgs package indexes: pkgs/by-name/na/nanomsg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S nanomsg
```

  証拠: Arch Linux sync databases: nanomsg from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Debian apt (92%):

```sh
sudo apt install libnanomsg-dev
```

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

- zypper (92%):

```sh
sudo zypper install libnanomsg6
```

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

## パッケージ情報

- **パッケージキー:** brew:nanomsg
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/nanomsg>
- **バージョン:** 1.2.4
- **ソース概要:** Socket library in C
- **ホームページ:** <https://nanomsg.org/>
- **リポジトリ:** <https://github.com/nanomsg/nanomsg>
- **上流ドキュメント:** <https://nanomsg.org/>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/nanomsg/nanomsg/archive/refs/tags/1.2.4.tar.gz>
- **最終更新:** 2026-08-03T00:20:22Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- nanocat (cli)
- nanocat (エイリアス)

## ビルド依存関係

- cmake

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 1.2.4
- マネージャ更新日: 2026-08-03
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/nanomsg/nanomsg
- 検出された最新: 1.2.4 (最新)
## プロジェクトの歴史と使われ方

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.

### タイムライン

- 2012-10-10: nanomsg/nanomsg repository created on GitHub.
- 2018-04-12: nanomsg homepage update already pointed users toward NNG when possible.
- 2025-10-05: nanomsg 1.2.2 bug-fix release published.
- 2026-07-01: Homebrew formula JSON listed stable version 1.2.2 and 382 installs over 365 days.

### Related projects

- ZeroMQ
- NNG
- mangos

### ソース

- <https://api.github.com/repos/nanomsg/nanomsg>
- <https://api.github.com/repos/nanomsg/nanomsg/releases?per_page=5>
- <https://formulae.brew.sh/api/formula/nanomsg.json>
- <https://formulae.brew.sh/formula/nanomsg>
- <https://github.com/nanomsg/nanomsg>
- <https://nanomsg.org/>
- <https://nanomsg.org/documentation-zeromq.html>
- <https://nanomsg.org/documentation.html>
- <https://nng.nanomsg.org/>
- <https://nng.nanomsg.org/RATIONALE.html>


## セキュリティノート

library-like package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- library-like package without higher-risk signals

## ソースデータベース詳細

- **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:** head, stable

## 他のパッケージマネージャ記録

- Debian apt - libnanomsg-dev - 1.1.5+dfsg-1.1+b1: normalized package name match | Debian stable package indexes: libnanomsg-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | nanomsg development files | http://nanomsg.org/
- Debian apt - libnanomsg5 - 1.1.5+dfsg-1.1+b1: normalized package name match | Debian stable package indexes: libnanomsg5 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | high-performance implementation of scalability libraries | http://nanomsg.org/
- Debian apt - nanomsg-utils - 1.1.5+dfsg-1.1+b1: normalized package name match | Debian stable package indexes: nanomsg-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | nanomsg utilities | http://nanomsg.org/
- Nix - nanomsg: normalized package name match | nixpkgs package indexes: pkgs/by-name/na/nanomsg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libnanomsg-dev - 1.1.5+dfsg-1.1: normalized package name match | Ubuntu 24.04 LTS package indexes: libnanomsg-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | nanomsg development files | http://nanomsg.org/
- Ubuntu apt - libnanomsg5 - 1.1.5+dfsg-1.1: normalized package name match | Ubuntu 24.04 LTS package indexes: libnanomsg5 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | high-performance implementation of scalability libraries | http://nanomsg.org/
- Ubuntu apt - nanomsg-utils - 1.1.5+dfsg-1.1: normalized package name match | Ubuntu 24.04 LTS package indexes: nanomsg-utils from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | nanomsg utilities | http://nanomsg.org/
- apk - nanomsg - 1.2.2-r0: normalized package name match | Alpine Linux edge package indexes: nanomsg from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Socket library that provides several common communication patterns | https://nanomsg.org
- apk - nanomsg-dev - 1.2.2-r0: normalized package name match | Alpine Linux edge package indexes: nanomsg-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Socket library that provides several common communication patterns (development files) | https://nanomsg.org
- apk - nanomsg-doc - 1.2.2-r0: normalized package name match | Alpine Linux edge package indexes: nanomsg-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Socket library that provides several common communication patterns (documentation) | https://nanomsg.org
- dnf - nanomsg - 1.2.2-3.fc45: normalized package name match | Fedora Rawhide package metadata: nanomsg from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Socket library that provides several common communication patterns | https://nanomsg.org/
- dnf - nanomsg-devel - 1.2.2-3.fc45: normalized package name match | Fedora Rawhide package metadata: nanomsg-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files for nanomsg | https://nanomsg.org/
- dnf - nanomsg-doc - 1.2.2-3.fc45: normalized package name match | Fedora Rawhide package metadata: nanomsg-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Documentation for nanomsg | https://nanomsg.org/
- pacman - nanomsg - 1.2.2-1: normalized package name match | Arch Linux sync databases: nanomsg from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Simple high-performance implementation of several "scalability protocols" | https://nanomsg.org/
- zypper - libnanomsg6 - 1.2.2-1.5: normalized package name match | openSUSE Tumbleweed package metadata: libnanomsg6 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Shared library for nanomsg | https://nanomsg.org/
- zypper - nanomsg-devel - 1.2.2-1.5: normalized package name match | openSUSE Tumbleweed package metadata: nanomsg-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Header files for nanomsg | https://nanomsg.org/


## 関連リンク

- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/ja/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/ja/brew-utility-packages/) - Matched Homebrew package provider.
- [cmake](https://pkg.so/ja/brew/cmake/) - Build dependency declared by Homebrew.
- [czmq](https://pkg.so/ja/brew/czmq/) - Shares pkgdb curated category or tags: c, cli, messaging, networking.
- [nats-server](https://pkg.so/ja/brew/nats-server/) - Shares pkgdb curated category or tags: cli, messaging, networking.
- [libpaho-mqtt](https://pkg.so/ja/brew/libpaho-mqtt/) - Shares pkgdb curated category or tags: c, cli, messaging, networking.
- [rabbitmq](https://pkg.so/ja/brew/rabbitmq/) - Shares pkgdb curated category or tags: cli, messaging, networking.
- [signal-cli](https://pkg.so/ja/brew/signal-cli/) - Shares pkgdb curated category or tags: cli, messaging, networking.
- [profanity](https://pkg.so/ja/brew/profanity/) - Shares pkgdb curated category or tags: cli, messaging, networking.
- [ejabberd](https://pkg.so/ja/brew/ejabberd/) - Shares pkgdb curated category or tags: cli, messaging, networking.
- [emqx](https://pkg.so/ja/brew/emqx/) - Shares pkgdb curated category or tags: cli, messaging, networking.

## Combined YAML source

View the package source record on GitHub. [combined/nanomsg.yml](https://github.com/mxcl/pkgdb/blob/main/combined/nanomsg.yml)


## ソース

- 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
