How To Install strace on Kali Linux
Introduction
In this tutorial we learn how to install strace
on Kali Linux.
What is strace
strace is:
strace is a system call tracer: i.e. a debugging tool which prints out a trace of all the system calls made by another process/program. The program to be traced need not be recompiled for this, so you can use it on binaries for which you don’t have source.
System calls and signals are events that happen at the user/kernel interface. A close examination of this boundary is very useful for bug isolation, sanity checking and attempting to capture race conditions.
There are three methods to install strace
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 strace Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install strace
using apt-get
by running the following command:
sudo apt-get -y install strace
Install strace Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install strace
using apt
by running the following command:
sudo apt -y install strace
Install strace 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 strace
using aptitude
by running the following command:
sudo aptitude -y install strace
How To Uninstall strace on Kali Linux
To uninstall only the strace
package we can use the following command:
sudo apt-get remove strace
Uninstall strace And Its Dependencies
To uninstall strace
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove strace
Remove strace Configurations and Data
To remove strace
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge strace
Remove strace configuration, data, and all of its dependencies
We can use the following command to remove strace
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge strace
Dependencies
strace have the following dependencies:
References
Summary
In this tutorial we learn how to install strace
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.