How To Install ghc-OpenGL on Fedora 36

In this tutorial we learn how to install ghc-OpenGL in Fedora 36. ghc-OpenGL is A binding for the OpenGL graphics system

Introduction

In this tutorial we learn how to install ghc-OpenGL on Fedora 36.

What is ghc-OpenGL

A Haskell binding for the OpenGL graphics system (GL, version 4.6) and its accompanying utility library (GLU, version 1.3). OpenGL is the industry’s most widely used and supported 2D and 3D graphics application programming interface (API), incorporating a broad set of rendering, texture mapping, special effects, and other powerful visualization functions. For more information about OpenGL and its various extensions, please see <http

We can use yum or dnf to install ghc-OpenGL on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-OpenGL.

Install ghc-OpenGL on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install ghc-OpenGL

Install ghc-OpenGL on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install ghc-OpenGL using yum by running the following command:

sudo yum -y install ghc-OpenGL

How To Uninstall ghc-OpenGL on Fedora 36

To uninstall only the ghc-OpenGL package we can use the following command:

sudo dnf remove ghc-OpenGL

ghc-OpenGL Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/51f0c714e50dd286e8a488d9e8432202cbef46
/usr/lib64/libHSOpenGL-3.0.3.0-IbZzTeOU8DILsHSSITp6Y3-ghc8.10.5.so
/usr/share/licenses/ghc-OpenGL
/usr/share/licenses/ghc-OpenGL/LICENSE

References

Summary

In this tutorial we learn how to install ghc-OpenGL on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).