How To Install systemtap-runtime-java.x86_64 on Amazon Linux 2

In this tutorial we learn how to install systemtap-runtime-java.x86_64 in Amazon Linux 2. systemtap-runtime-java.x86_64 is Systemtap Java Runtime Support

Introduction

In this tutorial we learn how to install systemtap-runtime-java.x86_64 on Amazon Linux 2.

What is systemtap-runtime-java.x86_64

This package includes support files needed to run systemtap scripts that probe Java processes running on the OpenJDK runtimes using Byteman.

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

Install systemtap-runtime-java.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 systemtap-runtime-java.x86_64 using yum by running the following command:

sudo yum -y install systemtap-runtime-java.x86_64

How To Uninstall systemtap-runtime-java.x86_64 on Amazon Linux 2

To uninstall only the systemtap-runtime-java.x86_64 package we can use the following command:

sudo yum remove systemtap-runtime-java.x86_64

systemtap-runtime-java.x86_64 Package Contents on Amazon Linux 2

/usr/libexec/systemtap
/usr/libexec/systemtap/HelperSDT.jar
/usr/libexec/systemtap/libHelperSDT_amd64.so
/usr/libexec/systemtap/stapbm

References

Summary

In this tutorial we learn how to install systemtap-runtime-java.x86_64 on Amazon Linux 2 using yum.