How To Install nicstat on Debian 9

In this tutorial we learn how to install nicstat on Debian 9. nicstat is print network traffic statistics

Introduction

In this tutorial we learn how to install nicstat on Debian 9.

What is nicstat

nicstat is:

nicstat is to network interfaces as iostat is to disks, or prstat is to processes. It is designed as a much better version of “netstat -i”. Its differences include:

  • Reports bytes in & out as well as packets.
  • Normalizes these values to per-second rates.
  • Reports on all interfaces (while iterating)
  • Reports Utilization (rough calculation as of now)
  • Reports Saturation (also rough)
  • Prefixes statistics with the current time

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

Install nicstat Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install nicstat

Install nicstat Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install nicstat

Install nicstat Using aptitude

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

sudo aptitude update

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

sudo aptitude -y install nicstat

How To Uninstall nicstat on Debian 9

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

sudo apt-get remove nicstat

Uninstall nicstat And Its Dependencies

To uninstall nicstat and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove nicstat

Remove nicstat Configurations and Data

To remove nicstat configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge nicstat

Remove nicstat configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge nicstat

Dependencies

nicstat have the following dependencies:

References

Summary

In this tutorial we learn how to install nicstat package on Debian 9 using different package management tools: apt, apt-get and aptitude.