# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 iftop

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

## 安装

```sh
sudo av install brew:iftop
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install iftop
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install iftop
```

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

### Linux

- apk (92%):

```sh
sudo apk add iftop
```

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

- Debian apt (92%):

```sh
sudo apt install iftop
```

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

- dnf (92%):

```sh
sudo dnf install iftop
```

  证据: Fedora Rawhide package metadata: iftop 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#iftop
```

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

- pacman (92%):

```sh
sudo pacman -S iftop
```

  证据: Arch Linux sync databases: iftop from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install iftop
```

  证据: openSUSE Tumbleweed package metadata: iftop from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:iftop
- **软件包管理器:** Homebrew
- **版本:** 1.0pre4
- **来源摘要:** Display an interface's bandwidth usage
- **主页:** <https://pdw.ex-parrot.com/iftop/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- iftop (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

iftop is a terminal bandwidth monitor by Paul Warren and contributors. Its project page summarizes the idea directly: it does for network usage what top does for CPU usage, listening on an interface and showing bandwidth by host pairs.

It became a familiar admin tool because it answers an immediate operational question: which conversations are using the link right now?

### 项目历史

The upstream ChangeLog records the first release as 0.1 on 2002-03-29. Early 2002 releases quickly added network-boundary analysis, cumulative totals, PPP support, Linux cooked sockets, port display, FreeBSD support, online help, service resolution controls, and bandwidth-in-bytes display.

By 2003 the tool had acquired autoconf/automake, better interface auto-selection, cumulative line totals, Solaris DLPI support, Mac OS X build fixes, config-file support, selectable averages, and command-line controls for port resolution.

Version 0.17 in 2006 added VLAN support and multiple portability fixes. Later 1.0 pre-release work added IPv6 support, text output mode, PFLOG support, many downstream portability fixes, and contributions routed through Debian, Fedora, Red Hat, and other users.

### 采用历史

iftop spread widely through Unix and Linux package collections because it pairs libpcap packet capture with a top-like curses interface. The supplied metadata lists Alpine, Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Ubuntu, and openSUSE-style package names.

The project page also maintained a mailing list, public archives, pre-release tarballs, and a git repository, which helped distribution maintainers track patches even when stable releases were infrequent. Homebrew's formula notes that distributions package a 1.0 pre-release because upstream movement slowed after the 2014 pre-release.

### 使用方式

Users usually run iftop on a selected interface to see bandwidth grouped by source and destination host pairs. The UI supports options and interactive toggles for hostnames, ports, sorting, totals, averages, filters, display scaling, and text output.

Because it uses libpcap, iftop often needs elevated privileges or packet-capture permissions. It is most useful during incident response, capacity checks, and quick diagnosis of unexpected traffic.

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

iftop is one of the canonical small admin packages: a memorable name, a single job, a curses UI, libpcap underneath, and years of downstream patches keeping it buildable across systems.

It also occupies the sweet spot between tcpdump and full network-monitoring suites. Package it once, run it over SSH, and get an immediate visual answer without setting up a daemon or dashboard.

### 时间线

- 2002-03-29: 0.1 first release.
- 2002-10-22: 0.9 adds FreeBSD support, online help, service toggles, and bandwidth-in-bytes display.
- 2003-01-08: 0.11 adds autoconf/automake and improved interface auto-selection.
- 2003-11-10: 0.15 adds config-file support and display controls.
- 2006-02-12: 0.17 adds VLAN support and portability fixes.
- 2014-01-19: 1.0pre4 is the pre-release packaged by Homebrew and other distributions.

### Related projects

- top is the direct interface analogy named by upstream.
- tcpdump, libpcap, pcap, ncurses, ntop, bmon, nload, iptraf-ng, and ifstat are adjacent command-line or terminal network-monitoring tools.

### 来源

- <https://code.blinkace.com/pdw/iftop>
- <https://code.blinkace.com/pdw/iftop/-/raw/master/ChangeLog>
- <https://formulae.brew.sh/formula/iftop>
- <https://pdw.ex-parrot.com/iftop/>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - iftop - 1.0~pre4-9+b1: normalized package name match | Debian stable package indexes: iftop from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | displays bandwidth usage information on an network interface | http://www.ex-parrot.com/~pdw/iftop/
- Nix - iftop: normalized package name match | nixpkgs package indexes: pkgs/by-name/if/iftop/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - iftop - 1.0~pre4-9build2: normalized package name match | Ubuntu 24.04 LTS package indexes: iftop from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | displays bandwidth usage information on an network interface | http://www.ex-parrot.com/~pdw/iftop/
- apk - iftop - 1.0_pre4-r0: normalized package name match | Alpine Linux edge package indexes: iftop from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A tool to display bandwidth usage on an interface | https://www.ex-parrot.com/~pdw/iftop/
- apk - iftop-doc - 1.0_pre4-r0: normalized package name match | Alpine Linux edge package indexes: iftop-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A tool to display bandwidth usage on an interface (documentation) | https://www.ex-parrot.com/~pdw/iftop/
- dnf - iftop - 1.0-0.39.pre4.fc45: normalized package name match | Fedora Rawhide package metadata: iftop from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Command line tool that displays bandwidth usage on an interface | http://www.ex-parrot.com/~pdw/iftop/
- pacman - iftop - 1.0pre4-6: normalized package name match | Arch Linux sync databases: iftop from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Display bandwidth usage on an interface | http://www.ex-parrot.com/~pdw/iftop/
- zypper - iftop - 0.99.4-11.5: normalized package name match | openSUSE Tumbleweed package metadata: iftop from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Real-Time Interface Bandwidth Usage | https://www.ex-parrot.com/~pdw/iftop/
- MacPorts - iftop: normalized package name match | MacPorts ports tree: net/iftop/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/iftop.yml](https://github.com/mxcl/pkgdb/blob/main/combined/iftop.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
