How To Install mesa-libGL-devel.x86_64 on Amazon Linux 2

In this tutorial we learn how to install mesa-libGL-devel.x86_64 in Amazon Linux 2. mesa-libGL-devel.x86_64 is Mesa libGL development package

Introduction

In this tutorial we learn how to install mesa-libGL-devel.x86_64 on Amazon Linux 2.

What is mesa-libGL-devel.x86_64

Mesa libGL development package

We can use yum to install mesa-libGL-devel.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install mesa-libGL-devel.x86_64.

Install mesa-libGL-devel.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 mesa-libGL-devel.x86_64 using yum by running the following command:

sudo yum -y install mesa-libGL-devel.x86_64

How To Uninstall mesa-libGL-devel.x86_64 on Amazon Linux 2

To uninstall only the mesa-libGL-devel.x86_64 package we can use the following command:

sudo yum remove mesa-libGL-devel.x86_64

mesa-libGL-devel.x86_64 Package Contents on Amazon Linux 2

/usr/include/GL/gl.h
/usr/include/GL/gl_mangle.h
/usr/include/GL/glcorearb.h
/usr/include/GL/glext.h
/usr/include/GL/glx.h
/usr/include/GL/glx_mangle.h
/usr/include/GL/glxext.h
/usr/include/GL/internal
/usr/include/GL/internal/dri_interface.h
/usr/lib64/libglapi.so
/usr/lib64/pkgconfig/dri.pc
/usr/lib64/pkgconfig/gl.pc

References

Summary

In this tutorial we learn how to install mesa-libGL-devel.x86_64 on Amazon Linux 2 using yum.