# 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **バージョン:** 1.2.4
- **ソース概要:** Socket library in C
- **ホームページ:** <https://nanomsg.org/>
- **リポジトリ:** <https://github.com/nanomsg/nanomsg>
- **最終更新:** 2026-08-03T00:20:22Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- nanocat (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 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

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

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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
