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

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

## インストール

```sh
sudo av install brew:libnatpmp
```

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

### macOS

- Homebrew (100%):

```sh
brew install libnatpmp
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libnatpmp
```

  証拠: MacPorts ports tree: net/libnatpmp/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add libnatpmp
```

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

- dnf (92%):

```sh
sudo dnf install libnatpmp
```

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

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

- pacman (92%):

```sh
sudo pacman -S libnatpmp
```

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

- Debian apt (92%):

```sh
sudo apt install libnatpmp-dev
```

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

## パッケージ情報

- **パッケージキー:** brew:libnatpmp
- **パッケージマネージャ:** Homebrew
- **バージョン:** 20230423
- **ソース概要:** NAT port mapping protocol library
- **ホームページ:** <https://miniupnp.tuxfamily.org/libnatpmp.html>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- natpmpc (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 20230423
## プロジェクトの歴史と使われ方

libnatpmp is the MiniUPnP project's small C client library for NAT Port Mapping Protocol, with a natpmpc command-line client for requesting mappings from NAT gateways.

### プロジェクトの歴史

The official MiniUPnP page describes NAT-PMP as a NAT traversal protocol and positions libnatpmp as a client-side implementation. The GitHub README says the repository was initialized from libnatpmp-20120821 and records Thomas Bernard's 2007-2009 copyright.

The protocol context comes from RFC 6886: NAT-PMP automated NAT port mappings, was implemented in Apple products from 2005 onward, and was superseded in 2013 by Port Control Protocol while retaining a compatible packet-format lineage.

### 採用の歴史

libnatpmp's adoption follows the MiniUPnP ecosystem and peer-to-peer networking use cases where software wants an explicit router port mapping without relying on UPnP IGD. The MiniUPnP documentation includes examples for simple redirection and a P2P-style initialization state machine.

In package managers, libnatpmp is small but useful: it gives applications a portable asynchronous NAT-PMP client library and gives users the natpmpc tool for testing gateway support.

### 使われ方

Applications initialize a natpmp_t object, send address or port-mapping requests, wait with select using the timeout helper, and read responses or retry. The API is intentionally event-loop-friendly because calls are asynchronous and based on non-blocking sockets.

### パッケージ好きにとっての重要性

Package nerds care about libnatpmp because it is the tiny sharp tool beside MiniUPnP: one library, one protocol, one CLI, and enough C API to let network applications punch a NAT mapping when the gateway supports NAT-PMP.

### タイムライン

- 2005: RFC 6886 later records NAT-PMP implementation in Apple products from this year onward.
- 2007-2009: libnatpmp source records Thomas Bernard's copyright range.
- 2012-08-21: The GitHub README says the repository was initialized from libnatpmp-20120821.
- 2013-04: RFC 6886 documents NAT-PMP and says PCP superseded it in 2013.
- 2020s: The library remains packaged as the MiniUPnP NAT-PMP client implementation.

### Related projects

- libnatpmp is related to MiniUPnP and MiniUPnPd, UPnP IGD, Apple's Bonjour-era NAT-PMP deployments, and the IETF Port Control Protocol that superseded NAT-PMP.

### ソース

- <https://datatracker.ietf.org/doc/html/rfc6886>
- <https://formulae.brew.sh/formula/libnatpmp>
- <https://github.com/miniupnp/libnatpmp>
- <https://github.com/miniupnp/miniupnp>
- <https://miniupnp.tuxfamily.org/libnatpmp.html>


## セキュリティノート

library-like package without higher-risk signals.

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

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

- Debian apt - libnatpmp-dev - 20230423-1.2+b3: normalized package name match | Debian stable package indexes: libnatpmp-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | portable and fully compliant implementation of NAT-PMP (dev files) | http://miniupnp.free.fr/libnatpmp.html
- Debian apt - libnatpmp1t64 - 20230423-1.2+b3: normalized package name match | Debian stable package indexes: libnatpmp1t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | portable and fully compliant implementation of NAT-PMP | http://miniupnp.free.fr/libnatpmp.html
- Debian apt - natpmpc - 20230423-1.2+b3: normalized package name match | Debian stable package indexes: natpmpc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | portable and fully compliant implementation of NAT-PMP (client) | http://miniupnp.free.fr/libnatpmp.html
- Debian apt - python3-libnatpmp - 20230423-1.2+b3: normalized package name match | Debian stable package indexes: python3-libnatpmp from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | portable and fully compliant implementation of NAT-PMP (Python 3 bindings) | http://miniupnp.free.fr/libnatpmp.html
- Nix - libnatpmp: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libnatpmp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libnatpmp-dev - 20230423-1.2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libnatpmp-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | portable and fully compliant implementation of NAT-PMP (dev files) | http://miniupnp.free.fr/libnatpmp.html
- Ubuntu apt - libnatpmp1t64 - 20230423-1.2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libnatpmp1t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | portable and fully compliant implementation of NAT-PMP | http://miniupnp.free.fr/libnatpmp.html
- Ubuntu apt - natpmpc - 20230423-1.2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: natpmpc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | portable and fully compliant implementation of NAT-PMP (client) | http://miniupnp.free.fr/libnatpmp.html
- Ubuntu apt - python3-libnatpmp - 20230423-1.2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-libnatpmp from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | portable and fully compliant implementation of NAT-PMP (Python 3 bindings) | http://miniupnp.free.fr/libnatpmp.html
- apk - libnatpmp - 20230423-r0: normalized package name match | Alpine Linux edge package indexes: libnatpmp from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Portable and fully compliant implementation of the NAT-PMP protocol | http://miniupnp.free.fr/libnatpmp.html
- apk - libnatpmp-dev - 20230423-r0: normalized package name match | Alpine Linux edge package indexes: libnatpmp-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Portable and fully compliant implementation of the NAT-PMP protocol (development files) | http://miniupnp.free.fr/libnatpmp.html
- apk - libnatpmp-doc - 20230423-r0: normalized package name match | Alpine Linux edge package indexes: libnatpmp-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Portable and fully compliant implementation of the NAT-PMP protocol (documentation) | http://miniupnp.free.fr/libnatpmp.html
- dnf - libnatpmp - 20230423-10.fc45: normalized package name match | Fedora Rawhide package metadata: libnatpmp from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Library of The NAT Port Mapping Protocol (NAT-PMP) | http://miniupnp.free.fr/libnatpmp.html
- dnf - libnatpmp-devel - 20230423-10.fc45: normalized package name match | Fedora Rawhide package metadata: libnatpmp-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for libnatpmp | http://miniupnp.free.fr/libnatpmp.html
- pacman - libnatpmp - 20230423-3: normalized package name match | Arch Linux sync databases: libnatpmp from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A portable and fully compliant implementation of the NAT-PMP protocol | http://miniupnp.free.fr/libnatpmp.html
- MacPorts - libnatpmp: normalized package name match | MacPorts ports tree: net/libnatpmp/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/libnatpmp.yml](https://github.com/mxcl/pkgdb/blob/main/combined/libnatpmp.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
