How To Install iperf on Kali Linux

In this tutorial we learn how to install iperf on Kali Linux. iperf is Internet Protocol bandwidth measuring tool

Introduction

In this tutorial we learn how to install iperf on Kali Linux.

What is iperf

iperf is:

Iperf is a modern alternative for measuring TCP and UDP bandwidth performance, allowing the tuning of various parameters and characteristics.

Features: * Measure bandwidth, packet loss, delay jitter * Report MSS/MTU size and observed read sizes. * Support for TCP window size via socket buffers. * Multi-threaded. Client and server can have multiple simultaneous connections. * Client can create UDP streams of specified bandwidth. * Multicast and IPv6 capable. * Options can be specified with K (kilo-) and M (mega-) suffices. * Can run for specified time, rather than a set amount of data to transfer. * Picks the best units for the size of data being reported. * Server handles multiple connections. * Print periodic, intermediate bandwidth, jitter, and loss reports at specified intervals. * Server can be run as a daemon. * Use representative streams to test out how link layer compression affects your achievable bandwidth.

There are three methods to install iperf on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install iperf Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install iperf using apt-get by running the following command:

sudo apt-get -y install iperf

Install iperf Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install iperf using apt by running the following command:

sudo apt -y install iperf

Install iperf Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install iperf using aptitude by running the following command:

sudo aptitude -y install iperf

How To Uninstall iperf on Kali Linux

To uninstall only the iperf package we can use the following command:

sudo apt-get remove iperf

Uninstall iperf And Its Dependencies

To uninstall iperf and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove iperf

Remove iperf Configurations and Data

To remove iperf configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge iperf

Remove iperf configuration, data, and all of its dependencies

We can use the following command to remove iperf configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge iperf

Dependencies

iperf have the following dependencies:

References

Summary

In this tutorial we learn how to install iperf package on Kali Linux using different package management tools: apt, apt-get and aptitude.