How To Install rr on CentOS 8

rr is Tool to record and replay execution of applications

Introduction

In this tutorial we learn how to install rr on CentOS 8.

What is rr

rr is a lightweight tool for recording and replaying execution of applications (trees of processes and threads). For more information, please visit http

We can use yum or dnf to install rr on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install rr.

Install rr on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install rr using dnf by running the following command:

sudo dnf -y install rr

Install rr on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install rr using yum by running the following command:

sudo yum -y install rr

How To Uninstall rr on CentOS 8

To uninstall only the rr package we can use the following command:

sudo dnf remove rr

rr Package Contents on CentOS 8

/usr/bin/rr
/usr/bin/rr-collect-symbols.py
/usr/bin/rr_exec_stub
/usr/bin/signal-rr-recording.sh
/usr/lib/.build-id
/usr/lib/.build-id/09
/usr/lib/.build-id/09/82cf00cbbcf4ad72f950c89cca18501f7f102a
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/ce7a50890b772e57645f66689c9ad11e6c4f84
/usr/lib64/rr
/usr/lib64/rr/librrpreload.so
/usr/share/bash-completion/completions/rr
/usr/share/rr
/usr/share/rr/32bit-avx.xml
/usr/share/rr/32bit-core.xml
/usr/share/rr/32bit-linux.xml
/usr/share/rr/32bit-sse.xml
/usr/share/rr/64bit-avx.xml
/usr/share/rr/64bit-core.xml
/usr/share/rr/64bit-linux.xml
/usr/share/rr/64bit-seg.xml
/usr/share/rr/64bit-sse.xml
/usr/share/rr/aarch64-core.xml
/usr/share/rr/aarch64-fpu.xml
/usr/share/rr/aarch64-pauth.xml
/usr/share/rr/amd64-avx-linux.xml
/usr/share/rr/amd64-linux.xml
/usr/share/rr/i386-avx-linux.xml
/usr/share/rr/i386-linux.xml
/usr/share/rr/rr_page_32
/usr/share/rr/rr_page_32_replay
/usr/share/rr/rr_page_64
/usr/share/rr/rr_page_64_replay
/usr/share/rr/rr_page_arm64
/usr/share/rr/rr_page_arm64_replay

References

Summary

In this tutorial we learn how to install rr on CentOS 8 using yum and dnf.