# Install mrtg with Homebrew, apk, apt, dnf, MacPorts, Nix

Multi router traffic grapher. Version 2.17.10 via Homebrew; verified from local package data. Also installable with debian: sudo apt install mrtg.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mrtg
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mrtg
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:mrtg
- **Package manager:** Homebrew
- **Version:** 2.17.10
- **Source summary:** Multi router traffic grapher
- **Homepage:** <https://oss.oetiker.ch/mrtg/>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- cfgmaker (alias)
- indexmaker (alias)
- mrtg (alias)
- mrtg-traffic-sum (alias)
- rateup (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 2.17.10
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Sources

- <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>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Other Package-Manager Records

- 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)


## Sources

- 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
