Automic VaultAutomic Vault

brew

使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, scoop, winget 安装 nmap

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install nmap

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install nmap

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

Linux

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

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

Debian apt已验证 · 92%
sudo apt install nmap

Debian stable package indexes · nmap · 来源: deb.debian.org

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

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

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

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

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

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

Windows

Chocolatey已验证 · 92%
choco install nmap

Chocolatey community package catalog · nmap · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/nmap

Scoop official bucket manifest trees · bucket/nmap.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id Insecure.Nmap -e

Windows Package Manager source index · Insecure.Nmap · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Port scanning utility for large networks

命令和别名

  • ncat
  • nmap
  • nping

历史

项目历史与用法

Nmap, short for Network Mapper, is one of the defining open-source security and network-discovery tools. Gordon "Fyodor" Lyon released it in Phrack issue 51 on September 1, 1997 as a Linux-only port scanner of about 2,000 lines; it grew into a cross-platform scanner for host discovery, port scanning, version detection, OS detection, scripting, scan comparison, packet generation, and network troubleshooting.

项目历史

The official Nmap history highlights rapid early expansion: version 2.00 added OS detection on December 12, 1998; the first GUI appeared in April 1999; Windows support landed in December 2000; Mac OS X support and XML output arrived with Nmap 3.00 on July 31, 2002; and service/version detection was publicly released with Nmap 3.45 on September 16, 2003. The scan engine was rewritten as `ultra_scan` in 2004, raw Ethernet sending appeared in 2005, and the Nmap Scripting Engine arrived in 2006.

采用历史

Nmap's adoption is unusually broad for a security tool. The official guide describes millions of users worldwide, recognition by publications such as Linux Journal and InfoWorld, and repeated appearances in films. Its own timeline also notes security-community infrastructure: a public Subversion repository in 2006, Google Summer of Code participation, Zenmap integration, and the 2009 release of Ncat and Ndiff as companion tools.

使用方式

Package nerds install Nmap not only for `nmap` itself but for the companion commands Homebrew ships: `ncat`, `ndiff`, and `nping`. Everyday workflows include `nmap -A -T4 host` for an aggressive inventory scan, targeted `-sV` service/version detection, `-O` OS detection, `-sn` ping sweeps, NSE scripts for protocol checks, `ncat` for socket work, and `ndiff` to compare repeated XML scans.

为什么软件包爱好者会关心

Nmap is a canonical example of a CLI package whose upstream is bigger than a single binary: it carries data files, scripts, service probes, OS fingerprints, documentation, and multiple related tools. It is packaged almost everywhere, and Homebrew's API reported 14,039 installs in 30 days, 54,604 in 90 days, and 251,639 in 365 days when checked on July 1, 2026.

时间线

  • 1997-09-01: first release in Phrack issue 51.
  • 1998-12-12: Nmap 2.00 adds OS detection.
  • 2000-12-07: first official Windows-capable version.
  • 2002-07-31: Nmap 3.00 adds Mac OS X support, XML output, and uptime detection.
  • 2003-09-16: service/version detection is publicly released.
  • 2006-12-10: Nmap Scripting Engine debuts in Nmap 4.21ALPHA1.
  • 2009-01-23: Ncat and Ndiff are added.
  • 2026-07-01: Homebrew stable version is 7.99.

Related projects

  • Ncat
  • Ndiff
  • Nping
  • Zenmap
  • Npcap
  • Nmap Scripting Engine

安全态势

风险级别:red

network reconnaissance tool.

风险分类器

red 风险 · 中 置信度 · escape-surveillance-offensive

原因

  • network reconnaissance tool

信号

  • override:nmap

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 6 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

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

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

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

https://nmap.org/

  • 信息Release/tag comparison is only available for GitHub repositories.https://nmap.org/none 置信度

安装元数据

软件包元数据

软件包键brew:nmap
版本7.99
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/nmap
主页https://nmap.org/
仓库https://svn.nmap.org/nmap
上游文档https://nmap.org/book/toc.html
许可证LicenseRef-Homebrew-cannot-represent
源码归档https://nmap.org/dist/nmap-7.99.tar.bz2
最后更新2026-06-22T14:05:38-07:00
Pulseupdated
依赖liblinear, libssh2, lua, openssl@3, pcre2, python@3.14
构建依赖python-setuptools
macOS 提供的库libpcap
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namenmap
Version Scheme0
Revision0
Head VersionHEAD
Conflicts With
  • cern-ndiff
  • ndiff
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

ncat 7.95+dfsg-3

NMAP netcat reimplementation

https://nmap.org/

sudo apt install ncat
  • Section: net
  • Architecture: amd64
  • Source Package: nmap
  • 4 依赖
  • normalized package name match
  • 匹配方式:Nmap
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ncat from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

ndiff 7.95+dfsg-3

The Network Mapper - result compare utility

https://nmap.org/

sudo apt install ndiff
  • Section: net
  • Architecture: all
  • Source Package: nmap
  • 2 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Nmap
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ndiff from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

nmap 7.95+dfsg-3

The Network Mapper

https://nmap.org/

sudo apt install nmap
  • Section: net
  • Architecture: amd64
  • 11 依赖
  • 3 可选依赖
  • normalized package name match
  • 匹配方式:Nmap
Debian stable package indexes · deb.debian.org · Debian stable package indexes: nmap from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

nmap-common 7.95+dfsg-3

Architecture independent files for nmap

https://nmap.org/

sudo apt install nmap-common
  • Section: net
  • Architecture: all
  • Source Package: nmap
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Nmap
Debian stable package indexes · deb.debian.org · Debian stable package indexes: nmap-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

zenmap 7.95+dfsg-3

The Network Mapper Front End

https://nmap.org/

sudo apt install zenmap
  • Section: net
  • Architecture: all
  • Source Package: nmap
  • 9 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Nmap
Debian stable package indexes · deb.debian.org · Debian stable package indexes: zenmap from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

nmap

nix profile install nixpkgs#nmap
  • normalized package name match
  • 匹配方式:Nmap
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/nm/nmap/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

ncat 7.94+git20230807.3be01efb1+dfsg-3build2

NMAP netcat reimplementation

https://nmap.org/

sudo apt install ncat
  • Section: universe/net
  • Architecture: amd64
  • Source Package: nmap
  • 4 依赖
  • normalized package name match
  • 匹配方式:Nmap
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ncat from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

ndiff 7.94+git20230807.3be01efb1+dfsg-3build2

The Network Mapper - result compare utility

https://nmap.org/

sudo apt install ndiff
  • Section: universe/net
  • Architecture: all
  • Source Package: nmap
  • 2 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Nmap
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ndiff from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

nmap 7.94+git20230807.3be01efb1+dfsg-3build2

The Network Mapper

https://nmap.org/

sudo apt install nmap
  • Section: universe/net
  • Architecture: amd64
  • 11 依赖
  • 3 可选依赖
  • normalized package name match
  • 匹配方式:Nmap
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: nmap from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

nmap-common 7.94+git20230807.3be01efb1+dfsg-3build2

Architecture independent files for nmap

https://nmap.org/

sudo apt install nmap-common
  • Section: universe/net
  • Architecture: all
  • Source Package: nmap
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Nmap
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: nmap-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

zenmap 7.94+git20230807.3be01efb1+dfsg-3build2

The Network Mapper Front End

https://nmap.org/

sudo apt install zenmap
  • Section: universe/net
  • Architecture: all
  • Source Package: nmap
  • 8 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Nmap
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: zenmap from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

nmap 7.99-r0

network exploration tool and security/port scanner

https://nmap.org

sudo apk add nmap
  • License: custom
  • Architecture: x86_64
  • Source Package: nmap
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nmap
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nmap from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

nmap-doc 7.99-r0

network exploration tool and security/port scanner (documentation)

https://nmap.org

sudo apk add nmap-doc
  • License: custom
  • Architecture: x86_64
  • Source Package: nmap
  • normalized package name match
  • 匹配方式:Nmap
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nmap-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

nmap-ncat 7.99-r0

network exploration tool and security/port scanner (ncat tool)

https://nmap.org

sudo apk add nmap-ncat
  • License: custom
  • Architecture: x86_64
  • Source Package: nmap
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nmap
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nmap-ncat from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

nmap-nping 7.99-r0

network exploration tool and security/port scanner (nping tool)

https://nmap.org

sudo apk add nmap-nping
  • License: custom
  • Architecture: x86_64
  • Source Package: nmap
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nmap
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nmap-nping from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

nmap-nselibs 7.99-r0

network exploration tool and security/port scanner (nselibs)

https://nmap.org

sudo apk add nmap-nselibs
  • License: custom
  • Architecture: x86_64
  • Source Package: nmap
  • normalized package name match
  • 匹配方式:Nmap
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nmap-nselibs from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

来源线索

由仓库数据生成

此页面由 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