Strace Installation On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian
Install strace
-
Debian
apt-get install straceClick to copy -
Ubuntu
apt-get install straceClick to copy -
Alpine OS
apk add straceClick to copy -
Arch Linux
pacman -S straceClick to copy -
Kali Linux
apt-get install straceClick to copy -
CentOS
yum install straceClick to copy -
Fedora
dnf install straceClick to copy -
Raspbian
apt-get install straceClick to copy
Troubleshooting tool for tracing system calls.
How to use strace?
Below are few example commands for strace that you can use in the terminal.
Start tracing a specific process by its PID:strace -p pidClick to copyTrace a process and filter output by system call:strace -p pid -e system_call_nameClick to copyCount time, calls, and errors for each system call and report a summary on program exit:strace -p pid -cClick to copyShow the time spent in every system call:strace -p pid -TClick to copyStart tracing a program by executing it:strace programClick to copyStart tracing file operations of a program:strace -e trace=file programClick to copy
Installing strace command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora and Raspbian operating systems. Once you run the command it will install the latest version of strace 2026 package in your OS.




