# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 2.17.10
- **来源摘要:** Multi router traffic grapher
- **主页:** <https://oss.oetiker.ch/mrtg/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
