# Install nfdump with Homebrew, apk, apt, dnf, MacPorts, Nix, zypper

Tools to collect and process netflow data on the command-line. Version 1.7.8 via Homebrew; verified from local package data. Also installable with debian: sudo apt install nfdump.

## Install

```sh
sudo av install brew:nfdump
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install nfdump
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install nfdump
```

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

### Linux

- apk (92%):

```sh
sudo apk add nfdump
```

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

- Debian apt (92%):

```sh
sudo apt install nfdump
```

  Evidence: Debian stable package indexes: nfdump from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install nfdump
```

  Evidence: Fedora Rawhide package metadata: nfdump 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#nfdump
```

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

- zypper (92%):

```sh
sudo zypper install nfdump
```

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

## Package facts

- **Package key:** brew:nfdump
- **Package manager:** Homebrew
- **Version:** 1.7.8
- **Source summary:** Tools to collect and process netflow data on the command-line
- **Homepage:** <https://github.com/phaag/nfdump>
- **Repository:** <https://github.com/phaag/nfdump>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- geolookup (alias)
- nfanon (alias)
- nfcapd (alias)
- nfdump (alias)
- nfexpire (alias)
- nfreplay (alias)
- sfcapd (alias)
- torlookup (alias)
- updateGeoDB.sh (alias)
- updateTorDB.sh (alias)

## Install behavior

- Bottle: not available

## Freshness

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

nfdump is a long-lived command-line toolkit for collecting, storing, replaying, filtering, aggregating, and analyzing NetFlow, IPFIX, and sFlow data. The core workflow pairs collector daemons such as `nfcapd` and `sfcapd` with `nfdump` queries over rotated binary flow files.

### Project history

The legacy SourceForge page says the project moved to GitHub and describes the original design: collect flow data to disk first, organize it in timestamped files, then analyze historical or continuous traffic with a fast tcpdump-like filter language. FreshPorts records the FreeBSD port being added on 2004-11-07 with version 1.1 and NetFlow v5/v7 support; later documentation and packaging show support expanded to v9, IPFIX, and sFlow.

The GitHub README describes the 1.7.x series codename `unicorn`, compatibility with files created by nfdump 1.6.18 or newer, and conversion paths for older legacy flow files.

### Adoption history

nfdump is an infrastructure package rather than a trendy CLI. It appears across Homebrew, Debian, Ubuntu, Fedora, Alpine, Nix, MacPorts, and FreeBSD ports, and is tied historically to NfSen. The GitHub repository showed 1,405 commits when researched. Homebrew's API generated on 2026-07-01 reported 233 installs-on-request in the preceding 365 days.

### How it is used

Practical users run `nfcapd` on UDP ports fed by routers, firewalls, or switches, rotate files every few minutes, and query them later with expressions such as `nfdump -r flowfile 'src ip 192.0.2.1 and dst port 443'`. The Debian nfcapd manpage says it accepts NetFlow v1, v5/v7, v9, and IPFIX transparently and works with exporters including Cisco Flexible NetFlow, ASA firewalls, NAT event logging, Juniper, VMware, Palo Alto, and yaf.

### Why package nerds care

nfdump matters because it keeps the packet-capture mental model for flow records: small composable commands, tcpdump-like filters, files you can retain or expire, and text/CSV/JSON/custom output for shell pipelines and monitoring integrations.

### Timeline

- 2004-11-07: FreshPorts records the FreeBSD nfdump port being added.
- 2014-12-01: legacy SourceForge page listed 1.6.13 as the stable version and pointed users to GitHub.
- 2026-07-01: Homebrew formula API generated data for nfdump 1.7.8.

### Related projects

- NfSen
- NetFlow
- IPFIX
- sFlow
- nfcapd
- sfcapd
- nfexpire
- nfreplay

### Sources

- <https://formulae.brew.sh/api/formula/nfdump.json>
- <https://github.com/phaag/nfdump>
- <https://manpages.debian.org/unstable/nfdump/nfcapd.1.en.html>
- <https://nfdump.sourceforge.net/>
- <https://www.freshports.org/net-mgmt/nfdump/>


## Security Notes

generalized runtime or code generation signal.

- **Geiger risk:** yellow / medium
- generalized runtime or code generation signal

## Other Package-Manager Records

- Debian apt - nfdump - 1.7.5-2+deb13u1: normalized package name match | Debian stable package indexes: nfdump from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | netflow capture daemon | https://github.com/phaag/nfdump/
- Debian apt - nfdump-sflow - 1.7.5-2+deb13u1: normalized package name match | Debian stable package indexes: nfdump-sflow from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | sflow collector daemon | https://github.com/phaag/nfdump/
- Nix - nfdump: normalized package name match | nixpkgs package indexes: pkgs/by-name/nf/nfdump/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - nfdump - 1.7.3-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: nfdump from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | netflow capture daemon | https://github.com/phaag/nfdump/
- Ubuntu apt - nfdump-sflow - 1.7.3-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: nfdump-sflow from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | sflow collector daemon | https://github.com/phaag/nfdump/
- apk - nfdump - 1.7.6-r1: normalized package name match | Alpine Linux edge package indexes: nfdump from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Tools to collect and process netflow data | https://github.com/phaag/nfdump
- apk - nfdump-dbg - 1.7.6-r1: normalized package name match | Alpine Linux edge package indexes: nfdump-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Tools to collect and process netflow data (debug symbols) | https://github.com/phaag/nfdump
- apk - nfdump-doc - 1.7.6-r1: normalized package name match | Alpine Linux edge package indexes: nfdump-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Tools to collect and process netflow data (documentation) | https://github.com/phaag/nfdump
- apk - nfdump-openrc - 1.7.6-r1: normalized package name match | Alpine Linux edge package indexes: nfdump-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Tools to collect and process netflow data (OpenRC init scripts) | https://github.com/phaag/nfdump
- apk - nfdump-static - 1.7.6-r1: normalized package name match | Alpine Linux edge package indexes: nfdump-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Tools to collect and process netflow data (static library) | https://github.com/phaag/nfdump
- apk - nfprofile - 1.7.6-r1: normalized package name match | Alpine Linux edge package indexes: nfprofile from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Create views of the data with NFdump filters | https://github.com/phaag/nfdump
- apk - sfcapd - 1.7.6-r1: normalized package name match | Alpine Linux edge package indexes: sfcapd from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | sFlow collector | https://github.com/phaag/nfdump
- apk - sfcapd-openrc - 1.7.6-r1: normalized package name match | Alpine Linux edge package indexes: sfcapd-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Tools to collect and process netflow data (OpenRC init scripts) | https://github.com/phaag/nfdump
- dnf - nfdump - 1.7.8-2.fc45: normalized package name match | Fedora Rawhide package metadata: nfdump from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | NetFlow collecting and processing tools | https://github.com/phaag/nfdump
- dnf - nfdump-libs - 1.7.8-2.fc45: normalized package name match | Fedora Rawhide package metadata: nfdump-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Libraries used by NFDUMP packages | https://github.com/phaag/nfdump
- zypper - libnfdump-1_7_8 - 1.7.8-1.3: normalized package name match | openSUSE Tumbleweed package metadata: libnfdump-1_7_8 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Shared Library part of libnfdump | https://github.com/phaag/nfdump


## Combined YAML source

View the package source record on GitHub. [combined/nfdump.yml](https://github.com/mxcl/pkgdb/blob/main/combined/nfdump.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
