How To Install freeglut.i686 on Amazon Linux 2

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

Introduction

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

What is freeglut.i686

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

Install freeglut.i686 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.i686 using yum by running the following command:

sudo yum -y install freeglut.i686

How To Uninstall freeglut.i686 on Amazon Linux 2

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

sudo yum remove freeglut.i686

freeglut.i686 Package Contents on Amazon Linux 2

/usr/lib/libglut.so.3
/usr/lib/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.i686 on Amazon Linux 2 using yum.