# 使用 Homebrew, apt, dnf, MacPorts 安装 ifstat

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

## 安装

```sh
sudo av install brew:ifstat
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ifstat
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ifstat
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install ifstat
```

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

- dnf (92%):

```sh
sudo dnf install ifstat
```

  证据: Fedora Rawhide package metadata: ifstat from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

## 软件包事实

- **软件包键:** brew:ifstat
- **软件包管理器:** Homebrew
- **版本:** 1.1
- **来源摘要:** Tool to report network interface bandwidth
- **主页:** <http://gael.roualland.free.fr/ifstat/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ifstat (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

ifstat is a small network-interface statistics tool by Gael Roualland. Its upstream page describes it as doing for network interfaces what vmstat and iostat do for other system counters.

The tool reports interface activity by reading operating-system counters directly, with optional SNMP support for remote hosts, routers, and switches.

### 项目历史

The release history begins with v0.1 on 2001-12-02, supporting Linux 2.2 and /proc. Within days, v0.2 added FreeBSD ifmib, Solaris kstat, interface discovery, and man pages.

During 2001 and 2002 the tool gained BSD kvm support, ucd-snmp support, Debian and RPM packaging support, loopback handling, multiple driver support, timestamping, and cleaner internal driver structure.

Version 1.0 in 2003 broadened Unix support with IRIX, OpenBSD, BSD route sysctl, improved kvm, terminal resizing behavior, total bandwidth reporting, and static library support. Version 1.1 in 2004 added Digital Unix, Tru64, AIX, HP-UX, Win32, and net-snmp-config integration.

### 采用历史

ifstat spread through classic Unix packaging channels because it solved a simple operational problem with a familiar interface: repeatable interface counters in a terminal. The supplied metadata lists Homebrew, Debian, Fedora, MacPorts, and Ubuntu package names.

Its adoption is also tied to portability. The upstream README lists Linux, Solaris, FreeBSD, IRIX, OpenBSD, NetBSD, Darwin, Digital Unix, AIX, HP-UX, and Win32 support, which made it useful on mixed Unix estates before Linux-only tooling dominated.

### 使用方式

Users run ifstat to watch receive and transmit rates for one or more interfaces. The README's usage section reduces the basic workflow to running the command and watching statistics update.

Administrators can use the build-time driver options to force or disable platform backends, and SNMP support lets the same style of output poll remote equipment when net-snmp or ucd-snmp is available.

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

ifstat is the sort of boring CLI package that explains why Unix package collections matter: it wraps many incompatible kernel-counter APIs behind one tiny command.

It also shows an older portability style, where configure checks, optional drivers, and per-OS counter backends made one C utility useful across a surprising number of operating systems.

### 时间线

- 2001-12-02: v0.1 initial implementation with Linux /proc support.
- 2001-12-04: v0.2 adds FreeBSD ifmib and Solaris kstat support.
- 2001-12-24: v0.4 adds SNMP support through ucd-snmp.
- 2002-01-17: v0.5 adds packaging support and multiple driver work.
- 2003-04-21: v1.0 expands BSD and terminal behavior features.
- 2004-01-01: v1.1 adds more Unix and Win32 support.

### Related projects

- vmstat and iostat are the conceptual models named by upstream.
- net-snmp, ucd-snmp, wmnet, and OS-specific kernel interfaces such as /proc/net/dev, kstat, ifmib, route sysctl, kvm, and GetIfTable are closely related to its implementation and use.

### 来源

- <http://gael.roualland.free.fr/ifstat/>
- <http://gael.roualland.free.fr/ifstat/HISTORY>
- <https://formulae.brew.sh/formula/ifstat>
- <https://github.com/matttbe/ifstat>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

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

- Debian apt - ifstat - 1.1.1-2+b1: normalized package name match | Debian stable package indexes: ifstat from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | InterFace STATistics Monitoring | http://gael.roualland.free.fr/ifstat/
- Debian apt - libifstat-dev - 1.1.1-2+b1: normalized package name match | Debian stable package indexes: libifstat-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Ifstat Development Files | http://gael.roualland.free.fr/ifstat/
- Ubuntu apt - ifstat - 1.1.1-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: ifstat from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | InterFace STATistics Monitoring | http://gael.roualland.free.fr/ifstat/
- Ubuntu apt - libifstat-dev - 1.1.1-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libifstat-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Ifstat Development Files | http://gael.roualland.free.fr/ifstat/
- dnf - ifstat - 1.1-51.fc45: normalized package name match | Fedora Rawhide package metadata: ifstat from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Interface statistics | http://gael.roualland.free.fr/ifstat/
- MacPorts - ifstat: normalized package name match | MacPorts ports tree: sysutils/ifstat/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/ifstat.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ifstat.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
