How to Fix bash: iptraf-ng: command not found in Minimal Linux Distributions

The iptraf-ng utility is a console-based network statistics monitor that provides real-time IP traffic graphs, TCP/UDP connection breakdowns, and interface packet counters. Minimal server installations, bare container images, and newly provisioned cloud instances do not include iptraf-ng by default, resulting in the bash: iptraf-ng: command not found error when running network inspections.

Install iptraf-ng on Ubuntu, Debian, and Derivatives

On Debian and Ubuntu systems, iptraf-ng is maintained in the standard software repositories:

  1. Update your local package repository index:
    sudo apt update
  2. Install the iptraf-ng package:
    sudo apt install -y iptraf-ng
  3. Confirm successful installation and run the tool with administrative privileges:
    which iptraf-ng
    sudo iptraf-ng

Install iptraf-ng on RHEL, CentOS, Rocky Linux, and Fedora

On enterprise Linux distributions, iptraf-ng is available either directly or through the EPEL repository:

  1. On RHEL or Rocky Linux, enable EPEL if not already present:
    sudo dnf install -y epel-release
  2. Install iptraf-ng via DNF:
    sudo dnf install -y iptraf-ng
  3. On Fedora systems, run sudo dnf install -y iptraf-ng directly.

Install iptraf-ng on Arch Linux and Alpine Linux

For rolling distributions and minimal container systems:

  • On Arch Linux, install directly from the extra repository:
    sudo pacman -Syu iptraf-ng
  • On Alpine Linux, install via apk:
    apk update && apk add iptraf-ng
  • Launch the interactive IP traffic monitor by executing sudo iptraf-ng -i all to inspect aggregated bandwidth across all active network adapters.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.