# 使用 Homebrew, apk, apt, MacPorts, Nix 安装 arping

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

## 安装

```sh
sudo av install brew:arping
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install arping
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install arping
```

  证据: MacPorts ports tree: net/arping/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add arping
```

  证据: Alpine Linux edge package indexes: arping from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install arping
```

  证据: Debian stable package indexes: arping from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#arping
```

  证据: nixpkgs package indexes: pkgs/by-name/ar/arping/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:arping
- **软件包管理器:** Homebrew
- **版本:** 2.29
- **来源摘要:** Utility to check whether MAC addresses are already taken on a LAN
- **主页:** <https://github.com/ThomasHabets/arping>
- **仓库:** <https://github.com/ThomasHabets/arping>
- **最后更新:** 2026-06-28T17:40:20Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- arping (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.29
## 项目历史与用法

ARP Ping, usually packaged as `arping`, is Thomas Habets' LAN diagnostic utility for sending ARP and ICMP-style pings to hosts. It is aimed at discovering whether an IPv4 address is already taken, mapping IPs and MACs, and diagnosing local-link problems where ordinary `ping` is not enough.

### 项目历史

The current upstream repository's default branch is `arping-2.x`, while an `arping-1.x` branch remains visible. The README explains that Arping 1.x was finally removed from the Arping 2.x tarball in 2.09, leaving older 2.08-and-earlier packages as the path for libnet 1.0.x users.

The manual page is dated June 21, 2003 and documents the classic behavior: send ARP requests for IP targets, directed broadcast ICMP echo requests for MAC targets, and print replies. The current build metadata identifies version 2.29 and requires libnet 1.1 or newer plus libpcap, with optional Linux privilege-dropping support through libcap/seccomp-related checks.

### 采用历史

arping's adoption comes from a small but persistent network-admin niche: it answers questions that IP `ping` cannot answer, especially before assigning an address, on networks where ICMP is filtered, or when a MAC address is known but the IP address is not.

The supplied package facts show it in Homebrew, Debian, Ubuntu, MacPorts, Nix, apk, and other Unix-like package collections. That breadth is typical for compact diagnostic tools whose behavior is simple, scriptable, and useful during installation, DHCP, address-conflict, and appliance-discovery work.

### 使用方式

The README's core example is checking whether an address is taken on a LAN before using it. The manpage documents `-c` for counts, `-i` for interface selection, `-d` for duplicate replies, raw output modes, broadcast/source-address options, unsolicited ARP with `-U`, VLAN tagging, and seccomp toggles.

Unlike `arp-scan`, which sweeps ranges, Thomas Habets' arping is centered on targeted ARP/MAC/IP probes. It can ping by IP to get a MAC, ping by MAC to get an IP when hosts respond to broadcast pings, and send unsolicited ARP to update neighbors' ARP caches.

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

arping is a classic example of a tiny network utility with a complicated name space: several unrelated projects and operating systems have shipped commands named `arping`. This package's identity is the Thomas Habets implementation, so the official GitHub repo and README are important disambiguators.

Its dependency split also matters to packagers: Arping 2.x requires libnet 1.1+, while the older 1.x line existed for libnet 1.0.x users.

### 时间线

- 2003: Manual page dated June 21 documents arping behavior and options.
- 2.09: Arping 1.x removed from the Arping 2.x tarball and autotools build system introduced.
- 2.29: Current version recorded in configure.ac.

### Related projects

- libnet is used for packet construction.
- libpcap is used for packet capture.
- arp-scan is a range-scanning cousin rather than the same tool.
- iputils has shipped a different `arping` implementation on Linux.

### 来源

- <https://github.com/ThomasHabets/arping#readme>
- <https://raw.githubusercontent.com/ThomasHabets/arping/arping-2.x/INSTALL>
- <https://raw.githubusercontent.com/ThomasHabets/arping/arping-2.x/configure.ac>
- <https://raw.githubusercontent.com/ThomasHabets/arping/arping-2.x/doc/arping.8>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - arping - 2.25-1: normalized package name match | Debian stable package indexes: arping from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | sends IP and/or ARP pings (to the MAC address) | https://www.habets.pp.se/synscan/programs.php?prog=arping
- Nix - arping: normalized package name match | nixpkgs package indexes: pkgs/by-name/ar/arping/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - arping - 2.24-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: arping from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | sends IP and/or ARP pings (to the MAC address) | https://www.habets.pp.se/synscan/programs.php?prog=arping
- apk - arping - 2.29-r0: normalized package name match | Alpine Linux edge package indexes: arping from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | An ARP ping utility | https://www.habets.pp.se/synscan/programs_arping.html
- apk - arping-doc - 2.29-r0: normalized package name match | Alpine Linux edge package indexes: arping-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | An ARP ping utility (documentation) | https://www.habets.pp.se/synscan/programs_arping.html
- MacPorts - arping: normalized package name match | MacPorts ports tree: net/arping/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/arping.yml](https://github.com/mxcl/pkgdb/blob/main/combined/arping.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
