How To Install dstat on Debian 10
Introduction
In this tutorial we learn how to install dstat
on Debian 10.
What is dstat
dstat is:
Dstat is a versatile replacement for vmstat, iostat and ifstat. Dstat overcomes some of the limitations of these programs and adds some extra features.
Dstat allows you to view all of your network resources instantly, you can for example, compare disk usage in combination with interrupts from your IDE controller, or compare the network bandwidth numbers directly with the disk throughput (in the same interval).
Dstat also cleverly gives you the most detailed information in columns and clearly indicates in what magnitude and unit the output is displayed.
Dstat is also unique in letting you aggregate block device throughput for a certain diskset or network bandwidth for a group of interfaces, i.e. you can see the throughput for all the block devices that make up a single filesystem or storage system.
Dstat’s output, in its current form, is not suited for post-processing by other tools, it’s mostly meant for humans to interpret real-time data as easy as possible.
There are three methods to install dstat
on Debian 10. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install dstat Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install dstat
using apt-get
by running the following command:
sudo apt-get -y install dstat
Install dstat Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install dstat
using apt
by running the following command:
sudo apt -y install dstat
Install dstat 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 dstat
using aptitude
by running the following command:
sudo aptitude -y install dstat
How To Uninstall dstat on Debian 10
To uninstall only the dstat
package we can use the following command:
sudo apt-get remove dstat
Uninstall dstat And Its Dependencies
To uninstall dstat
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove dstat
Remove dstat Configurations and Data
To remove dstat
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge dstat
Remove dstat configuration, data, and all of its dependencies
We can use the following command to remove dstat
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge dstat
Dependencies
dstat have the following dependencies:
References
Summary
In this tutorial we learn how to install dstat
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.