Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt 安装 libnatpmp

查看 libnatpmp 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install libnatpmp

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install libnatpmp

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

Linux

Alpine Linux apk已验证 · 92%
sudo apk add libnatpmp

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

Fedora dnf已验证 · 92%
sudo dnf install libnatpmp

Fedora Rawhide package metadata · libnatpmp · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#libnatpmp

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

Arch Linux pacman已验证 · 92%
sudo pacman -S libnatpmp

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

Debian apt已验证 · 92%
sudo apt install libnatpmp-dev

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

概览

软件包摘要

NAT port mapping protocol library

命令和别名

  • natpmpc

历史

项目历史与用法

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.

安全态势

风险级别:绿色

library-like package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • library-like package without higher-risk signals

信号

  • metadata:library-like

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 12 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
natpmpccli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本20230423
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

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

安装元数据

软件包元数据

软件包键brew:libnatpmp
版本20230423
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/libnatpmp
主页https://miniupnp.tuxfamily.org/libnatpmp.html
仓库https://github.com/miniupnp/libnatpmp
上游文档https://miniupnp.tuxfamily.org/libnatpmp.html
许可证BSD-3-Clause
源码归档https://miniupnp.tuxfamily.org/files/download.php?file=libnatpmp-20230423.tar.gz
Bottle可用 (于 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-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • 2 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • 2 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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