How To Install perf-tools-unstable on Debian 10
Introduction
In this tutorial we learn how to install perf-tools-unstable
on Debian 10.
What is perf-tools-unstable
perf-tools-unstable is:
A miscellaneous collection of in-development and unsupported performance analysis tools for Linux perf_events, aka the “perf” command, and ftrace. Both perf_events and ftrace are core Linux tracing tools, and are included in the Linux kernel source.
These tools are designed to be simple to use, easy to install, and provide advanced performance observability. This collection was written by Brendan Gregg (author of the DTraceToolkit).
Many of these tools employ workarounds so that functionality is possible on existing Linux kernels. Because of this, many tools have caveats (see man pages), and their implementation should be considered a placeholder until future kernel features, or new tracing subsystems, are added.
There are three methods to install perf-tools-unstable
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 perf-tools-unstable Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install perf-tools-unstable
using apt-get
by running the following command:
sudo apt-get -y install perf-tools-unstable
Install perf-tools-unstable Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install perf-tools-unstable
using apt
by running the following command:
sudo apt -y install perf-tools-unstable
Install perf-tools-unstable 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 perf-tools-unstable
using aptitude
by running the following command:
sudo aptitude -y install perf-tools-unstable
How To Uninstall perf-tools-unstable on Debian 10
To uninstall only the perf-tools-unstable
package we can use the following command:
sudo apt-get remove perf-tools-unstable
Uninstall perf-tools-unstable And Its Dependencies
To uninstall perf-tools-unstable
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove perf-tools-unstable
Remove perf-tools-unstable Configurations and Data
To remove perf-tools-unstable
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge perf-tools-unstable
Remove perf-tools-unstable configuration, data, and all of its dependencies
We can use the following command to remove perf-tools-unstable
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge perf-tools-unstable
Dependencies
perf-tools-unstable have the following dependencies:
References
Summary
In this tutorial we learn how to install perf-tools-unstable
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.