How To Install strace.x86_64 on Amazon Linux 2

In this tutorial we learn how to install strace.x86_64 in Amazon Linux 2. strace.x86_64 is Tracks and displays system calls associated with a running process

Introduction

In this tutorial we learn how to install strace.x86_64 on Amazon Linux 2.

What is strace.x86_64

The strace program intercepts and records the system calls called and received by a running process. Strace can print a record of each system call, its arguments and its return value. Strace is useful for diagnosing problems and debugging, as well as for instructional purposes. Install strace if you need a tool to track the system calls made and received by a process.

We can use yum to install strace.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install strace.x86_64.

Install strace.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install strace.x86_64 using yum by running the following command:

sudo yum -y install strace.x86_64

How To Uninstall strace.x86_64 on Amazon Linux 2

To uninstall only the strace.x86_64 package we can use the following command:

sudo yum remove strace.x86_64

strace.x86_64 Package Contents on Amazon Linux 2

/usr/bin/strace
/usr/bin/strace-log-merge
/usr/share/doc/strace-4.26
/usr/share/doc/strace-4.26/COPYING
/usr/share/doc/strace-4.26/CREDITS
/usr/share/doc/strace-4.26/ChangeLog-CVS.gz
/usr/share/doc/strace-4.26/ChangeLog.gz
/usr/share/doc/strace-4.26/NEWS
/usr/share/doc/strace-4.26/README
/usr/share/man/man1/strace-log-merge.1.gz
/usr/share/man/man1/strace.1.gz

References

Summary

In this tutorial we learn how to install strace.x86_64 on Amazon Linux 2 using yum.