How To Install freeglut on CentOS 8

freeglut is A freely licensed alternative to the GLUT library A freely licensed alternative to the GLUT library

Introduction

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

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 3.0.0 8.el8 x86_64 191 k freeglut-3.0.0-8.el8.src.rpm appstream A freely licensed alternative to the GLUT library http MIT 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 8. In this tutorial we discuss both methods but you only need to choose one of method to install freeglut.

Install freeglut on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install freeglut

Install freeglut on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install freeglut

How To Uninstall freeglut on CentOS 8

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

sudo dnf remove freeglut

freeglut Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/8ca142be1476b82e032ec93b81a1f2f793a0ac
/usr/lib/libglut.so.3
/usr/lib/libglut.so.3.10.0
/usr/share/doc/freeglut
/usr/share/doc/freeglut/AUTHORS
/usr/share/doc/freeglut/COPYING
/usr/share/doc/freeglut/ChangeLog
/usr/share/doc/freeglut/README
/usr/share/doc/freeglut/download.html
/usr/share/doc/freeglut/freeglut.html
/usr/share/doc/freeglut/freeglut_logo.png
/usr/share/doc/freeglut/freeglut_user_interface.html
/usr/share/doc/freeglut/index.html
/usr/share/doc/freeglut/ogl_sm.png
/usr/share/doc/freeglut/progress.html
/usr/share/doc/freeglut/structure.html
/usr/lib/.build-id
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/b56d6eb4741da2229b06b3602c2ef683d3f4f7
/usr/lib64/libglut.so.3
/usr/lib64/libglut.so.3.10.0
/usr/share/doc/freeglut
/usr/share/doc/freeglut/AUTHORS
/usr/share/doc/freeglut/COPYING
/usr/share/doc/freeglut/ChangeLog
/usr/share/doc/freeglut/README
/usr/share/doc/freeglut/download.html
/usr/share/doc/freeglut/freeglut.html
/usr/share/doc/freeglut/freeglut_logo.png
/usr/share/doc/freeglut/freeglut_user_interface.html
/usr/share/doc/freeglut/index.html
/usr/share/doc/freeglut/ogl_sm.png
/usr/share/doc/freeglut/progress.html
/usr/share/doc/freeglut/structure.html

References

Summary

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