How To Install xz-libs on Rocky Linux 8

In this tutorial we learn how to install xz-libs on Rocky Linux 8. xz-libs is Libraries for decoding LZMA compression

Introduction

In this tutorial we learn how to install xz-libs on Rocky Linux 8.

What is xz-libs

Libraries for decoding files compressed with LZMA or XZ utils.

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

Install xz-libs 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 xz-libs using dnf by running the following command:

sudo dnf -y install xz-libs

Install xz-libs 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 xz-libs using yum by running the following command:

sudo yum -y install xz-libs

How To Uninstall xz-libs on Rocky Linux 8

To uninstall only the xz-libs package we can use the following command:

sudo dnf remove xz-libs

xz-libs Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/c3481b8c90e3524d5024da4aea7daf0f0d1f37
/usr/lib/liblzma.so.5
/usr/lib/liblzma.so.5.2.4
/usr/share/doc/xz/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/8b1a975b8752e6bb6b6207aa8561a8246aef63
/usr/lib64/liblzma.so.5
/usr/lib64/liblzma.so.5.2.4
/usr/share/doc/xz/COPYING

References

Summary

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