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

In this tutorial we learn how to install systemtap-runtime.x86_64 in Amazon Linux 2. systemtap-runtime.x86_64 is Programmable system-wide instrumentation system - runtime

Introduction

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

What is systemtap-runtime.x86_64

SystemTap runtime contains the components needed to execute a systemtap script that was already compiled into a module using a local or remote systemtap-devel installation.

We can use yum to install systemtap-runtime.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.x86_64.

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

sudo yum -y install systemtap-runtime.x86_64

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

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

sudo yum remove systemtap-runtime.x86_64

systemtap-runtime.x86_64 Package Contents on Amazon Linux 2

/usr/bin/stap-merge
/usr/bin/stap-report
/usr/bin/stapbpf
/usr/bin/stapdyn
/usr/bin/staprun
/usr/bin/stapsh
/usr/lib64/systemtap
/usr/lib64/systemtap/staplog.so
/usr/libexec/systemtap
/usr/libexec/systemtap/stap-authorize-cert
/usr/libexec/systemtap/stapio
/usr/share/doc/systemtap-runtime-4.4
/usr/share/doc/systemtap-runtime-4.4/AUTHORS
/usr/share/doc/systemtap-runtime-4.4/NEWS
/usr/share/doc/systemtap-runtime-4.4/README
/usr/share/doc/systemtap-runtime-4.4/README.security
/usr/share/licenses/systemtap-runtime-4.4
/usr/share/licenses/systemtap-runtime-4.4/COPYING
/usr/share/locale/cs/LC_MESSAGES/systemtap.mo
/usr/share/locale/en/LC_MESSAGES/systemtap.mo
/usr/share/locale/fr/LC_MESSAGES/systemtap.mo
/usr/share/locale/pl/LC_MESSAGES/systemtap.mo
/usr/share/man/cs/man1/dtrace.1.gz
/usr/share/man/cs/man1/stap-merge.1.gz
/usr/share/man/cs/man1/stap-prep.1.gz
/usr/share/man/cs/man1/stap-report.1.gz
/usr/share/man/cs/man1/stap.1.gz
/usr/share/man/cs/man1/stapref.1.gz
/usr/share/man/cs/man1/stapvirt.1.gz
/usr/share/man/cs/man3/stapex.3stap.gz
/usr/share/man/cs/man3/stapfuncs.3stap.gz
/usr/share/man/cs/man3/stapprobes.3stap.gz
/usr/share/man/cs/man3/stapvars.3stap.gz
/usr/share/man/cs/man7/error::dwarf.7stap.gz
/usr/share/man/cs/man7/error::fault.7stap.gz
/usr/share/man/cs/man7/error::inode-uprobes.7stap.gz
/usr/share/man/cs/man7/error::pass1.7stap.gz
/usr/share/man/cs/man7/error::pass2.7stap.gz
/usr/share/man/cs/man7/error::pass3.7stap.gz
/usr/share/man/cs/man7/error::pass4.7stap.gz
/usr/share/man/cs/man7/error::pass5.7stap.gz
/usr/share/man/cs/man7/error::process-tracking.7stap.gz
/usr/share/man/cs/man7/error::reporting.7stap.gz
/usr/share/man/cs/man7/error::sdt.7stap.gz
/usr/share/man/cs/man7/stappaths.7.gz
/usr/share/man/cs/man7/warning::buildid.7stap.gz
/usr/share/man/cs/man7/warning::debuginfo.7stap.gz
/usr/share/man/cs/man7/warning::symbols.7stap.gz
/usr/share/man/cs/man8/stap-server.8.gz
/usr/share/man/cs/man8/stapsh.8.gz
/usr/share/man/cs/man8/systemtap.8.gz
/usr/share/man/man1/stap-report.1.gz
/usr/share/man/man7/error::dwarf.7stap.gz
/usr/share/man/man7/error::fault.7stap.gz
/usr/share/man/man7/error::inode-uprobes.7stap.gz
/usr/share/man/man7/error::pass1.7stap.gz
/usr/share/man/man7/error::pass2.7stap.gz
/usr/share/man/man7/error::pass3.7stap.gz
/usr/share/man/man7/error::pass4.7stap.gz
/usr/share/man/man7/error::pass5.7stap.gz
/usr/share/man/man7/error::process-tracking.7stap.gz
/usr/share/man/man7/error::reporting.7stap.gz
/usr/share/man/man7/error::sdt.7stap.gz
/usr/share/man/man7/stappaths.7.gz
/usr/share/man/man7/warning::buildid.7stap.gz
/usr/share/man/man7/warning::debuginfo.7stap.gz
/usr/share/man/man7/warning::symbols.7stap.gz
/usr/share/man/man8/stapbpf.8.gz
/usr/share/man/man8/stapdyn.8.gz
/usr/share/man/man8/staprun.8.gz
/usr/share/man/man8/stapsh.8.gz

References

Summary

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