# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix 安装 mrtg

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

## 安装

```sh
sudo av install brew:mrtg
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mrtg
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mrtg
```

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

### Linux

- apk (92%):

```sh
sudo apk add mrtg
```

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

- Debian apt (92%):

```sh
sudo apt install mrtg
```

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

- dnf (92%):

```sh
sudo dnf install mrtg
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#mrtg
```

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

## 软件包事实

- **软件包键:** brew:mrtg
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mrtg>
- **版本:** 2.17.10
- **来源摘要:** Multi router traffic grapher
- **主页:** <https://oss.oetiker.ch/mrtg/>
- **上游文档:** <https://oss.oetiker.ch/mrtg/>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://oss.oetiker.ch/mrtg/pub/mrtg-2.17.10.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- cfgmaker (cli)
- indexmaker (cli)
- mrtg (cli)
- mrtg-traffic-sum (cli)
- rateup (cli)
- cfgmaker (别名)
- indexmaker (别名)
- mrtg (别名)
- mrtg-traffic-sum (别名)
- rateup (别名)

## 依赖

- gd
- libpng

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.17.10
- 本地数据: OK
- 上游仓库: https://oss.oetiker.ch/mrtg/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

MRTG, the Multi Router Traffic Grapher, is Tobias Oetiker's classic network-traffic graphing tool, co-authored with Dave Rand. Oetiker's project documentation traces its origin to 1994, when he needed to show how a 64 kbit Internet link was performing and wrote a quick web graphing hack. That hack evolved into the configurable Perl script MRTG 1.0, released in spring 1995.

### 项目历史

A major technical milestone came in January 1996 after Dave Rand investigated MRTG's speed. Oetiker's history says Rand rewrote the time-critical parts in C, producing about a forty-fold speedup and prompting renewed development of MRTG 2. The resulting architecture paired Perl-based polling and configuration with fast C routines for logging and graph generation.

### 采用历史

In operation MRTG polls SNMP counters or external command output, logs the values, and generates HTML pages with PNG graphs for day, week, month, and year views. It keeps constant-size log files through data consolidation, supports SNMPv2c 64-bit counters, can identify interfaces by IP address, description, or Ethernet address, and has hooks for RRDtool when performance demands it. Although it began with router interfaces, the documentation explicitly notes monitoring arbitrary SNMP variables or command outputs such as system load, login sessions, modem availability, and similar integer-valued metrics.

### 使用方式

MRTG's package-manager niche is old but durable network monitoring. It predates many web-dashboard monitoring stacks and remains useful where static HTML graphs, cron or daemon polling, SNMP, and simple deployment are enough. Related tools such as RRDtool, Munin, and Cacti cover broader graphing or dashboard workflows, while MRTG retains the direct router-traffic-grapher identity in Unix and macOS packaging.

### 来源

- <https://formulae.brew.sh/formula/mrtg>
- <https://oss.oetiker.ch/mrtg/doc/mrtg.en.html>
- <https://www.usenix.org/legacy/event/lisa98/full_papers/oetiker/oetiker.pdf>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mrtg
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Debian apt - mrtg - 2.17.10-13+deb13u1: normalized package name match | Debian stable package indexes: mrtg from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Multi Router Traffic Grapher | https://oss.oetiker.ch/mrtg
- Debian apt - mrtg-contrib - 2.17.10-13+deb13u1: normalized package name match | Debian stable package indexes: mrtg-contrib from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Multi Router Traffic Grapher (contributed files) | https://oss.oetiker.ch/mrtg
- Nix - mrtg: normalized package name match | nixpkgs package indexes: pkgs/by-name/mr/mrtg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - mrtg - 2.17.10-12: normalized package name match | Ubuntu 24.04 LTS package indexes: mrtg from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Multi Router Traffic Grapher | https://oss.oetiker.ch/mrtg
- Ubuntu apt - mrtg-contrib - 2.17.10-12: normalized package name match | Ubuntu 24.04 LTS package indexes: mrtg-contrib from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Multi Router Traffic Grapher (contributed files) | https://oss.oetiker.ch/mrtg
- apk - mrtg - 2.17.10-r2: normalized package name match | Alpine Linux edge package indexes: mrtg from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | MRTG Network Latency Monitoring | https://oss.oetiker.ch/mrtg/
- apk - mrtg-doc - 2.17.10-r2: normalized package name match | Alpine Linux edge package indexes: mrtg-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | MRTG Network Latency Monitoring (documentation) | https://oss.oetiker.ch/mrtg/
- dnf - mrtg - 2.17.10-14.fc45: normalized package name match | Fedora Rawhide package metadata: mrtg from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Multi Router Traffic Grapher | http://oss.oetiker.ch/mrtg/
- dnf - mrtg-selinux - 2.17.10-14.fc45: normalized package name match | Fedora Rawhide package metadata: mrtg-selinux from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | mrtg SELinux policy | http://oss.oetiker.ch/mrtg/
- MacPorts - mrtg: normalized package name match | MacPorts ports tree: net/mrtg/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [libpng](https://pkg.so/zh-hans/brew/libpng/) - Runtime dependency declared by Homebrew.
- [gd](https://pkg.so/zh-hans/brew/gd/) - Runtime dependency declared by Homebrew.
- [nethogs](https://pkg.so/zh-hans/brew/nethogs/) - Shares pkgdb curated category or tags: bandwidth, cli, monitoring, network-monitoring, networking.
- [nload](https://pkg.so/zh-hans/brew/nload/) - Shares pkgdb curated category or tags: bandwidth, cli, monitoring, network-monitoring, networking.
- [ntopng](https://pkg.so/zh-hans/brew/ntopng/) - Shares pkgdb curated category or tags: cli, monitoring, network-monitoring, networking.
- [prettyping](https://pkg.so/zh-hans/brew/prettyping/) - Shares pkgdb curated category or tags: cli, monitoring, network-monitoring, networking.
- [rustnet](https://pkg.so/zh-hans/brew/rustnet/) - Shares pkgdb curated category or tags: cli, monitoring, network-monitoring, networking.
- [ifstat](https://pkg.so/zh-hans/brew/ifstat/) - Shares pkgdb curated category or tags: bandwidth, cli, network-monitoring, networking, snmp.
- [netshow](https://pkg.so/zh-hans/brew/netshow/) - Shares pkgdb curated category or tags: cli, monitoring, network-monitoring, networking.
- [packetbeat](https://pkg.so/zh-hans/brew/packetbeat/) - Shares pkgdb curated category or tags: cli, monitoring, network-monitoring, networking.
- [vnstat](https://pkg.so/zh-hans/brew/vnstat/) - Local metadata places this package in an adjacent workflow. Shared terms: bandwidth, cli, gd, monitoring, network.

## Combined YAML source

View the package source record on GitHub. [combined/mrtg.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mrtg.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
