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

In this tutorial we learn how to install systemtap-runtime-virthost.x86_64 in Amazon Linux 2. systemtap-runtime-virthost.x86_64 is Systemtap Cross-VM Instrumentation - host

Introduction

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

What is systemtap-runtime-virthost.x86_64

This package includes the components required to run systemtap scripts inside a libvirt-managed domain from the host without using a network connection.

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

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

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

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

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

sudo yum remove systemtap-runtime-virthost.x86_64

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

/usr/bin/stapvirt
/usr/share/man/man1/stapvirt.1.gz

References

Summary

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