How To Install ostree-libs on Rocky Linux 8

In this tutorial we learn how to install ostree-libs on Rocky Linux 8. ostree-libs is Development headers for ostree

Introduction

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

What is ostree-libs

The ostree-libs provides shared libraries for ostree.

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

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

sudo dnf -y install ostree-libs

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

sudo yum -y install ostree-libs

How To Uninstall ostree-libs on Rocky Linux 8

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

sudo dnf remove ostree-libs

ostree-libs Package Contents on Rocky Linux 8

/etc/ostree
/etc/ostree/remotes.d
/usr/lib/.build-id
/usr/lib/.build-id/75
/usr/lib/.build-id/75/471905e0bc4d8b42e0ebd960a86ab881a40c35
/usr/lib64/girepository-1.0/OSTree-1.0.typelib
/usr/lib64/libostree-1.so.1
/usr/lib64/libostree-1.so.1.0.0
/etc/ostree
/etc/ostree/remotes.d
/usr/lib/.build-id
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/9a8acf16ba1ddc9a51cfc2ca433ef083c4da8c
/usr/lib/girepository-1.0/OSTree-1.0.typelib
/usr/lib/libostree-1.so.1
/usr/lib/libostree-1.so.1.0.0

References

Summary

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