How To Install freeglut.x86_64 on Amazon Linux 2

In this tutorial we learn how to install freeglut.x86_64 in Amazon Linux 2. freeglut.x86_64 is A freely licensed alternative to the GLUT library

Introduction

In this tutorial we learn how to install freeglut.x86_64 on Amazon Linux 2.

What is freeglut.x86_64

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 to install freeglut.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install freeglut.x86_64.

Install freeglut.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install freeglut.x86_64

How To Uninstall freeglut.x86_64 on Amazon Linux 2

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

sudo yum remove freeglut.x86_64

freeglut.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libglut.so.3
/usr/lib64/libglut.so.3.10.0
/usr/share/doc/freeglut-3.0.0
/usr/share/doc/freeglut-3.0.0/AUTHORS
/usr/share/doc/freeglut-3.0.0/COPYING
/usr/share/doc/freeglut-3.0.0/ChangeLog
/usr/share/doc/freeglut-3.0.0/README
/usr/share/doc/freeglut-3.0.0/download.html
/usr/share/doc/freeglut-3.0.0/freeglut.html
/usr/share/doc/freeglut-3.0.0/freeglut_logo.png
/usr/share/doc/freeglut-3.0.0/freeglut_user_interface.html
/usr/share/doc/freeglut-3.0.0/index.html
/usr/share/doc/freeglut-3.0.0/ogl_sm.png
/usr/share/doc/freeglut-3.0.0/progress.html
/usr/share/doc/freeglut-3.0.0/structure.html

References

Summary

In this tutorial we learn how to install freeglut.x86_64 on Amazon Linux 2 using yum.