How To Install libunwind on Rocky Linux 8

In this tutorial we learn how to install libunwind on Rocky Linux 8. libunwind is An unwinding library

Introduction

In this tutorial we learn how to install libunwind on Rocky Linux 8.

What is libunwind

Libunwind provides a C ABI to determine the call-chain of a program.

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

Install libunwind on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install libunwind

Install libunwind on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install libunwind

How To Uninstall libunwind on Rocky Linux 8

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

sudo dnf remove libunwind

libunwind Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/14ed432c1d41139ac0f2318be04ab3e6170ee5
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/33cdcb70e3fc2779cd39f0206914aa3c318127
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/7f7a271dffc8845eb25bcf646dfca754365db2
/usr/lib64/libunwind-coredump.so.0
/usr/lib64/libunwind-coredump.so.0.0.0
/usr/lib64/libunwind-x86_64.so.8
/usr/lib64/libunwind-x86_64.so.8.0.1
/usr/lib64/libunwind.so.8
/usr/lib64/libunwind.so.8.0.1
/usr/share/doc/libunwind
/usr/share/doc/libunwind/NEWS
/usr/share/doc/libunwind/README
/usr/share/licenses/libunwind
/usr/share/licenses/libunwind/COPYING

References

Summary

In this tutorial we learn how to install libunwind on Rocky Linux 8 using yum and dnf.