How To Install stress-ng on Debian 11
Introduction
In this tutorial we learn how to install stress-ng
on Debian 11.
What is stress-ng
stress-ng is:
stress-ng can stress various subsystems of a computer. It can stress load CPU, cache, disk, memory, socket and pipe I/O, scheduling and much more. stress-ng is a re-write of the original stress tool by Amos Waterland but has many additional features such as specifying the number of bogo operations to run, execution metrics, a stress verification on memory and compute operations and considerably more stress mechanisms.
There are three methods to install stress-ng
on Debian 11. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install stress-ng Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install stress-ng
using apt-get
by running the following command:
sudo apt-get -y install stress-ng
Install stress-ng Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install stress-ng
using apt
by running the following command:
sudo apt -y install stress-ng
Install stress-ng 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 stress-ng
using aptitude
by running the following command:
sudo aptitude -y install stress-ng
How To Uninstall stress-ng on Debian 11
To uninstall only the stress-ng
package we can use the following command:
sudo apt-get remove stress-ng
Uninstall stress-ng And Its Dependencies
To uninstall stress-ng
and its dependencies that are no longer needed by Debian 11, we can use the command below:
sudo apt-get -y autoremove stress-ng
Remove stress-ng Configurations and Data
To remove stress-ng
configuration and data from Debian 11 we can use the following command:
sudo apt-get -y purge stress-ng
Remove stress-ng configuration, data, and all of its dependencies
We can use the following command to remove stress-ng
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge stress-ng
Dependencies
stress-ng have the following dependencies:
References
Summary
In this tutorial we learn how to install stress-ng
package on Debian 11 using different package management tools: apt
, apt-get
and aptitude
.