Automic VaultAutomic Vault

brew

Install libnatpmp with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman

NAT port mapping protocol library. Version 20230423 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install libnatpmp

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install libnatpmp

MacPorts ports tree · net/libnatpmp/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add libnatpmp

Alpine Linux edge package indexes · libnatpmp · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install libnatpmp-dev

Debian stable package indexes · libnatpmp-dev · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install libnatpmp

Fedora Rawhide package metadata · libnatpmp · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#libnatpmp

nixpkgs package indexes · pkgs/by-name/li/libnatpmp/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S libnatpmp

Arch Linux sync databases · libnatpmp · source: geo.mirror.pkgbuild.com

overview

Package summary

NAT port mapping protocol library

Commands and aliases

  • natpmpc

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 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.

security posture

Risk level: green

library-like package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • library-like package without higher-risk signals

Signals

  • metadata:library-like

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 12 platform targets.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
natpmpccliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version20230423
manager updated
local dataok
upstreamnot checked
latest detectednot detected

https://miniupnp.tuxfamily.org/libnatpmp.html

install metadata

Package metadata

Package keybrew:libnatpmp
Version20230423
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/libnatpmp
Homepagehttps://miniupnp.tuxfamily.org/libnatpmp.html
Repositoryhttps://github.com/miniupnp/libnatpmp
Upstream docshttps://miniupnp.tuxfamily.org/libnatpmp.html
LicenseBSD-3-Clause
Source archivehttps://miniupnp.tuxfamily.org/files/download.php?file=libnatpmp-20230423.tar.gz
Bottleavailable (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

libnatpmp-dev 20230423-1.2+b3

portable and fully compliant implementation of NAT-PMP (dev files)

http://miniupnp.free.fr/libnatpmp.html

sudo apt install libnatpmp-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: libnatpmp
  • 1 dependencies
  • normalized package name match
  • Matched by: Libnatpmp
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libnatpmp-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libnatpmp1t64 20230423-1.2+b3

portable and fully compliant implementation of NAT-PMP

http://miniupnp.free.fr/libnatpmp.html

sudo apt install libnatpmp1t64
  • Section: libs
  • Architecture: amd64
  • Source Package: libnatpmp
  • 1 dependencies
  • 1 provides
  • 2 optional deps
  • normalized package name match
  • Matched by: Libnatpmp
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libnatpmp1t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

natpmpc 20230423-1.2+b3

portable and fully compliant implementation of NAT-PMP (client)

http://miniupnp.free.fr/libnatpmp.html

sudo apt install natpmpc
  • Section: net
  • Architecture: amd64
  • Source Package: libnatpmp
  • 2 dependencies
  • normalized package name match
  • Matched by: Libnatpmp
Debian stable package indexes · deb.debian.org · Debian stable package indexes: natpmpc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

python3-libnatpmp 20230423-1.2+b3

portable and fully compliant implementation of NAT-PMP (Python 3 bindings)

http://miniupnp.free.fr/libnatpmp.html

sudo apt install python3-libnatpmp
  • Section: python
  • Architecture: amd64
  • Source Package: libnatpmp
  • 3 dependencies
  • normalized package name match
  • Matched by: Libnatpmp
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-libnatpmp from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

libnatpmp

nix profile install nixpkgs#libnatpmp
  • normalized package name match
  • Matched by: Libnatpmp
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/li/libnatpmp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libnatpmp-dev 20230423-1.2build1

portable and fully compliant implementation of NAT-PMP (dev files)

http://miniupnp.free.fr/libnatpmp.html

sudo apt install libnatpmp-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: libnatpmp
  • 1 dependencies
  • normalized package name match
  • Matched by: Libnatpmp
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libnatpmp-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libnatpmp1t64 20230423-1.2build1

portable and fully compliant implementation of NAT-PMP

http://miniupnp.free.fr/libnatpmp.html

sudo apt install libnatpmp1t64
  • Section: libs
  • Architecture: amd64
  • Source Package: libnatpmp
  • 1 dependencies
  • 1 provides
  • 2 optional deps
  • normalized package name match
  • Matched by: Libnatpmp
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libnatpmp1t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

natpmpc 20230423-1.2build1

portable and fully compliant implementation of NAT-PMP (client)

http://miniupnp.free.fr/libnatpmp.html

sudo apt install natpmpc
  • Section: universe/net
  • Architecture: amd64
  • Source Package: libnatpmp
  • 2 dependencies
  • normalized package name match
  • Matched by: Libnatpmp
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: natpmpc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

python3-libnatpmp 20230423-1.2build1

portable and fully compliant implementation of NAT-PMP (Python 3 bindings)

http://miniupnp.free.fr/libnatpmp.html

sudo apt install python3-libnatpmp
  • Section: universe/python
  • Architecture: amd64
  • Source Package: libnatpmp
  • 3 dependencies
  • normalized package name match
  • Matched by: Libnatpmp
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: python3-libnatpmp from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

libnatpmp 20230423-r0

Portable and fully compliant implementation of the NAT-PMP protocol

http://miniupnp.free.fr/libnatpmp.html

sudo apk add libnatpmp
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: libnatpmp
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Libnatpmp
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libnatpmp from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

libnatpmp-dev 20230423-r0

Portable and fully compliant implementation of the NAT-PMP protocol (development files)

http://miniupnp.free.fr/libnatpmp.html

sudo apk add libnatpmp-dev
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: libnatpmp
  • 1 dependencies
  • normalized package name match
  • Matched by: Libnatpmp
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libnatpmp-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

libnatpmp-doc 20230423-r0

Portable and fully compliant implementation of the NAT-PMP protocol (documentation)

http://miniupnp.free.fr/libnatpmp.html

sudo apk add libnatpmp-doc
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: libnatpmp
  • normalized package name match
  • Matched by: Libnatpmp
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libnatpmp-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

libnatpmp 20230423-9.fc44

Library of The NAT Port Mapping Protocol (NAT-PMP)

http://miniupnp.free.fr/libnatpmp.html

sudo dnf install libnatpmp
  • License: LGPL-2.0-or-later
  • Category: Unspecified
  • Architecture: i686
  • Source Package: libnatpmp
  • 2 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Libnatpmp
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libnatpmp from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

libnatpmp-devel 20230423-9.fc44

Development files for libnatpmp

http://miniupnp.free.fr/libnatpmp.html

sudo dnf install libnatpmp-devel
  • License: LGPL-2.0-or-later
  • Category: Unspecified
  • Architecture: i686
  • Source Package: libnatpmp
  • 2 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Libnatpmp
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libnatpmp-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

libnatpmp 20230423-3

A portable and fully compliant implementation of the NAT-PMP protocol

http://miniupnp.free.fr/libnatpmp.html

sudo pacman -S libnatpmp
  • License: BSD
  • Architecture: x86_64
  • 1 dependencies
  • normalized package name match
  • Matched by: Libnatpmp
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: libnatpmp from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

libnatpmp

sudo port install libnatpmp
  • normalized package name match
  • Matched by: Libnatpmp
MacPorts ports tree · api.github.com · MacPorts ports tree: net/libnatpmp/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • 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