How To Install mesa-libOSMesa on Rocky Linux 8

In this tutorial we learn how to install mesa-libOSMesa on Rocky Linux 8. mesa-libOSMesa is Mesa offscreen rendering libraries

Introduction

In this tutorial we learn how to install mesa-libOSMesa on Rocky Linux 8.

What is mesa-libOSMesa

Mesa offscreen rendering libraries.

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

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

sudo dnf -y install mesa-libOSMesa

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

sudo yum -y install mesa-libOSMesa

How To Uninstall mesa-libOSMesa on Rocky Linux 8

To uninstall only the mesa-libOSMesa package we can use the following command:

sudo dnf remove mesa-libOSMesa

mesa-libOSMesa Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/55
/usr/lib/.build-id/55/6fefcc5476784080d040ba81129b194d5010c0
/usr/lib64/libOSMesa.so.8
/usr/lib64/libOSMesa.so.8.0.0
/usr/lib/.build-id
/usr/lib/.build-id/66
/usr/lib/.build-id/66/9bda98e79e9be7faedc040d20cc284c882f2cd
/usr/lib/libOSMesa.so.8
/usr/lib/libOSMesa.so.8.0.0

References

Summary

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