How To Install glew on CentOS 7

In this tutorial we learn how to install glew on CentOS 7. glew is The OpenGL Extension Wrangler Library

Introduction

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

What is glew

The OpenGL Extension Wrangler Library (GLEW) is a cross-platform C/C++ extension loading library. GLEW provides efficient run-time mechanisms for determining which OpenGL extensions are supported on the target platform. OpenGL core and extension functionality is exposed in a single header file. GLEW is available for a variety of operating systems, including Windows, Linux, Mac OS X, FreeBSD, Irix, and Solaris. This package contains the demo GLEW utilities. The libraries themselves are in libGLEW and libGLEWmx.

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

Install glew on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install glew

Install glew 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 glew using dnf by running the following command:

sudo dnf -y install glew

How To Uninstall glew on CentOS 7

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

sudo dnf remove glew

References

Summary

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