How To Install libdrm-devel.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libdrm-devel.x86_64 in Amazon Linux 2. libdrm-devel.x86_64 is Direct Rendering Manager development package

Introduction

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

What is libdrm-devel.x86_64

Direct Rendering Manager development package

We can use yum to install libdrm-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 libdrm-devel.x86_64.

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

sudo yum -y install libdrm-devel.x86_64

How To Uninstall libdrm-devel.x86_64 on Amazon Linux 2

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

sudo yum remove libdrm-devel.x86_64

libdrm-devel.x86_64 Package Contents on Amazon Linux 2

/usr/include/libdrm
/usr/include/libdrm/amdgpu.h
/usr/include/libdrm/amdgpu_drm.h
/usr/include/libdrm/drm.h
/usr/include/libdrm/drm_fourcc.h
/usr/include/libdrm/drm_mode.h
/usr/include/libdrm/drm_sarea.h
/usr/include/libdrm/i915_drm.h
/usr/include/libdrm/intel_aub.h
/usr/include/libdrm/intel_bufmgr.h
/usr/include/libdrm/intel_debug.h
/usr/include/libdrm/mach64_drm.h
/usr/include/libdrm/mga_drm.h
/usr/include/libdrm/msm_drm.h
/usr/include/libdrm/nouveau/nouveau.h
/usr/include/libdrm/nouveau/nvif/cl0080.h
/usr/include/libdrm/nouveau/nvif/cl9097.h
/usr/include/libdrm/nouveau/nvif/class.h
/usr/include/libdrm/nouveau/nvif/if0002.h
/usr/include/libdrm/nouveau/nvif/if0003.h
/usr/include/libdrm/nouveau/nvif/ioctl.h
/usr/include/libdrm/nouveau/nvif/unpack.h
/usr/include/libdrm/nouveau_drm.h
/usr/include/libdrm/qxl_drm.h
/usr/include/libdrm/r128_drm.h
/usr/include/libdrm/r600_pci_ids.h
/usr/include/libdrm/radeon_bo.h
/usr/include/libdrm/radeon_bo_gem.h
/usr/include/libdrm/radeon_bo_int.h
/usr/include/libdrm/radeon_cs.h
/usr/include/libdrm/radeon_cs_gem.h
/usr/include/libdrm/radeon_cs_int.h
/usr/include/libdrm/radeon_drm.h
/usr/include/libdrm/radeon_surface.h
/usr/include/libdrm/savage_drm.h
/usr/include/libdrm/sis_drm.h
/usr/include/libdrm/tegra_drm.h
/usr/include/libdrm/vc4_drm.h
/usr/include/libdrm/via_drm.h
/usr/include/libdrm/virtgpu_drm.h
/usr/include/libdrm/vmwgfx_drm.h
/usr/include/libkms
/usr/include/libkms/libkms.h
/usr/include/libsync.h
/usr/include/xf86drm.h
/usr/include/xf86drmMode.h
/usr/lib64/libdrm.so
/usr/lib64/libdrm_amdgpu.so
/usr/lib64/libdrm_intel.so
/usr/lib64/libdrm_nouveau.so
/usr/lib64/libdrm_radeon.so
/usr/lib64/libkms.so
/usr/lib64/pkgconfig/libdrm.pc
/usr/lib64/pkgconfig/libdrm_amdgpu.pc
/usr/lib64/pkgconfig/libdrm_intel.pc
/usr/lib64/pkgconfig/libdrm_nouveau.pc
/usr/lib64/pkgconfig/libdrm_radeon.pc
/usr/lib64/pkgconfig/libkms.pc
/usr/share/man/man3/drmAvailable.3.gz
/usr/share/man/man3/drmHandleEvent.3.gz
/usr/share/man/man3/drmModeGetResources.3.gz
/usr/share/man/man7/drm-gem.7.gz
/usr/share/man/man7/drm-kms.7.gz
/usr/share/man/man7/drm-memory.7.gz
/usr/share/man/man7/drm-mm.7.gz
/usr/share/man/man7/drm-ttm.7.gz
/usr/share/man/man7/drm.7.gz

References

Summary

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