How To Install freeglut on CentOS 7

In this tutorial we learn how to install freeglut on CentOS 7. freeglut is A freely licensed alternative to the GLUT library

Introduction

In this tutorial we learn how to install freeglut on CentOS 7.

What is freeglut

freeglut is a completely open source alternative to the OpenGL Utility Toolkit (GLUT) library with an OSI approved free software license. GLUT was originally written by Mark Kilgard to support the sample programs in the second edition OpenGL ‘RedBook’. Since then, GLUT has been used in a wide variety of practical applications because it is simple, universally available and highly portable. freeglut allows the user to create and manage windows containing OpenGL contexts on a wide range of platforms and also read the mouse, keyboard and joystick functions. freeglut is a completely open source alternative to the OpenGL Utility Toolkit (GLUT) library with an OSI approved free software license. GLUT was originally written by Mark Kilgard to support the sample programs in the second edition OpenGL ‘RedBook’. Since then, GLUT has been used in a wide variety of practical applications because it is simple, universally available and highly portable. freeglut allows the user to create and manage windows containing OpenGL contexts on a wide range of platforms and also read the mouse, keyboard and joystick functions.

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

Install freeglut on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install freeglut

Install freeglut on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install freeglut

How To Uninstall freeglut on CentOS 7

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

sudo dnf remove freeglut

References

Summary

In this tutorial we learn how to install freeglut on CentOS 7 using yum and dnf.