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

In this tutorial we learn how to install systemtap-server.x86_64 in Amazon Linux 2. systemtap-server.x86_64 is Instrumentation System Server

Introduction

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

What is systemtap-server.x86_64

This is the remote script compilation server component of systemtap. It announces itself to nearby clients with avahi (if available), and compiles systemtap scripts to kernel objects on their demand.

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

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

sudo yum -y install systemtap-server.x86_64

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

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

sudo yum remove systemtap-server.x86_64

systemtap-server.x86_64 Package Contents on Amazon Linux 2

/etc/logrotate.d/stap-server
/etc/stap-server
/usr/bin/stap-server
/usr/lib/systemd/system/stap-server.service
/usr/lib/tmpfiles.d/stap-server.conf
/usr/libexec/systemtap
/usr/libexec/systemtap/stap-authorize-cert
/usr/libexec/systemtap/stap-env
/usr/libexec/systemtap/stap-gen-cert
/usr/libexec/systemtap/stap-serverd
/usr/libexec/systemtap/stap-sign-module
/usr/libexec/systemtap/stap-start-server
/usr/libexec/systemtap/stap-stop-server
/usr/share/doc/systemtap-server-4.4
/usr/share/doc/systemtap-server-4.4/AUTHORS
/usr/share/doc/systemtap-server-4.4/NEWS
/usr/share/doc/systemtap-server-4.4/README
/usr/share/doc/systemtap-server-4.4/README.unprivileged
/usr/share/licenses/systemtap-server-4.4
/usr/share/licenses/systemtap-server-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/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/stap-server.8.gz
/var/lib/stap-server
/var/lib/stap-server/.systemtap
/var/log/stap-server
/var/log/stap-server/log
/var/run/stap-server

References

Summary

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