How To Install cogl on AlmaLinux 8

In this tutorial we learn how to install cogl in AlmaLinux 8. cogl is A library for using 3D graphics hardware to draw pretty pictures

Introduction

In this tutorial we learn how to install cogl on AlmaLinux 8.

What is cogl

Cogl is a small open source library for using 3D graphics hardware to draw pretty pictures. The API departs from the flat state machine style of OpenGL and is designed to make it easy to write orthogonal components that can render without stepping on each others toes. As well aiming for a nice API, we think having a single library as opposed to an API specification like OpenGL has a few advantages too; like being able to paper over the inconsistencies/bugs of different OpenGL implementations in a centralized place, not to mention the myriad of OpenGL extensions. It also means we are in a better position to provide utility APIs that help software developers since they only need to be implemented once and there is no risk of inconsistency between implementations. Having other backends, besides OpenGL, such as drm, Gallium or D3D are options we are interested in for the future.

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

Install cogl on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install cogl

Install cogl on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install cogl

How To Uninstall cogl on AlmaLinux 8

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

sudo dnf remove cogl

References

Summary

In this tutorial we learn how to install cogl on AlmaLinux 8 using yum and dnf.