How To Install libdrm on Fedora 34

libdrm is Direct Rendering Manager runtime library Direct Rendering Manager runtime library

Introduction

In this tutorial we learn how to install libdrm on Fedora 34.

What is libdrm

Direct Rendering Manager runtime library libdrm 2.4.107 1.fc34 x86_64 162 k libdrm-2.4.107-1.fc34.src.rpm updates Direct Rendering Manager runtime library https MIT Direct Rendering Manager runtime library

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

Install libdrm on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install libdrm

Install libdrm on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install libdrm

How To Uninstall libdrm on Fedora 34

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

sudo dnf remove libdrm

libdrm Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/01
/usr/lib/.build-id/01/8862876b78bc306424abcdad9ce38dae473fea
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/824a22d92f4cc833015d2a82b02374ef5847b0
/usr/lib/.build-id/68
/usr/lib/.build-id/68/d0107067c23bfd50b3e72e07dde990afc739a6
/usr/lib/.build-id/73
/usr/lib/.build-id/73/e83ca7e7ed290ae53589f8c3ad30e2c51e2c0b
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/9c86e321dbdf8a9b029fe76a24b5261fb04784
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/dacff0b02e92f56bd870a9ceec1fe149603797
/usr/lib/libdrm.so.2
/usr/lib/libdrm.so.2.4.0
/usr/lib/libdrm_amdgpu.so.1
/usr/lib/libdrm_amdgpu.so.1.0.0
/usr/lib/libdrm_intel.so.1
/usr/lib/libdrm_intel.so.1.0.0
/usr/lib/libdrm_nouveau.so.2
/usr/lib/libdrm_nouveau.so.2.0.0
/usr/lib/libdrm_radeon.so.1
/usr/lib/libdrm_radeon.so.1.0.1
/usr/lib/libkms.so.1
/usr/lib/libkms.so.1.0.0
/usr/lib/udev/rules.d/91-drm-modeset.rules
/usr/share/doc/libdrm
/usr/share/doc/libdrm/README.rst
/usr/share/libdrm
/usr/share/libdrm/amdgpu.ids
/usr/lib/.build-id
/usr/lib/.build-id/49
/usr/lib/.build-id/49/50eea5e951c6103fdf0cc6b36f591cc9b4afa4
/usr/lib/.build-id/64
/usr/lib/.build-id/64/fec40eef32e8dd1fdc1fd37821d6e50055251d
/usr/lib/.build-id/79
/usr/lib/.build-id/79/ae0e516a3e7d10b6ed327aeeab2864b6c23cab
/usr/lib/.build-id/87
/usr/lib/.build-id/87/7939d900759d848eca5f6f2fb1b13cb08f8951
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/2df240f43478e7870f535990eb5f520bbe5707
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/6c4a84995cb46b6629eb2eddd27f97aa77908c
/usr/lib/libdrm.so.2
/usr/lib/libdrm.so.2.4.0
/usr/lib/libdrm_amdgpu.so.1
/usr/lib/libdrm_amdgpu.so.1.0.0
/usr/lib/libdrm_intel.so.1
/usr/lib/libdrm_intel.so.1.0.0
/usr/lib/libdrm_nouveau.so.2
/usr/lib/libdrm_nouveau.so.2.0.0
/usr/lib/libdrm_radeon.so.1
/usr/lib/libdrm_radeon.so.1.0.1
/usr/lib/libkms.so.1
/usr/lib/libkms.so.1.0.0
/usr/lib/udev/rules.d/91-drm-modeset.rules
/usr/share/doc/libdrm
/usr/share/doc/libdrm/README.rst
/usr/share/libdrm
/usr/share/libdrm/amdgpu.ids
/usr/lib/.build-id
/usr/lib/.build-id/51
/usr/lib/.build-id/51/83582ff124e4a0ed9c5ef65617465e609094ce
/usr/lib/.build-id/60
/usr/lib/.build-id/60/d6523c8b18bfb019cf459be3bab50135d8a674
/usr/lib/.build-id/61
/usr/lib/.build-id/61/c0c5d2155ca98250f8130f7adac2fea9946efd
/usr/lib/.build-id/89
/usr/lib/.build-id/89/9f4c354b89e20e346ecb4e2051084cb46538f4
/usr/lib/.build-id/a3
/usr/lib/.build-id/a3/594dcd5e4f9dba7477d728059523770cf323d1
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/a3e48661df3e4ec5eeff6e6b7c58d20937b343
/usr/lib/udev/rules.d/91-drm-modeset.rules
/usr/lib64/libdrm.so.2
/usr/lib64/libdrm.so.2.4.0
/usr/lib64/libdrm_amdgpu.so.1
/usr/lib64/libdrm_amdgpu.so.1.0.0
/usr/lib64/libdrm_intel.so.1
/usr/lib64/libdrm_intel.so.1.0.0
/usr/lib64/libdrm_nouveau.so.2
/usr/lib64/libdrm_nouveau.so.2.0.0
/usr/lib64/libdrm_radeon.so.1
/usr/lib64/libdrm_radeon.so.1.0.1
/usr/lib64/libkms.so.1
/usr/lib64/libkms.so.1.0.0
/usr/share/doc/libdrm
/usr/share/doc/libdrm/README.rst
/usr/share/libdrm
/usr/share/libdrm/amdgpu.ids
/usr/lib/.build-id
/usr/lib/.build-id/75
/usr/lib/.build-id/75/b341a2254db5b488229c71ab08efd84a35e641
/usr/lib/.build-id/86
/usr/lib/.build-id/86/ea07524b9848fe1c215a75d2edd627d82814be
/usr/lib/.build-id/87
/usr/lib/.build-id/87/71cf8d9a3467cfcff09c524d3300616e89f17e
/usr/lib/.build-id/96
/usr/lib/.build-id/96/5ce0a12d9fb7e37b2093601eae9c1e9e754754
/usr/lib/.build-id/d8
/usr/lib/.build-id/d8/c17ef5de7c0d829d07d863150dbea75de32099
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/7c796947f5174fe560dd5684e1869d7cf45228
/usr/lib/udev/rules.d/91-drm-modeset.rules
/usr/lib64/libdrm.so.2
/usr/lib64/libdrm.so.2.4.0
/usr/lib64/libdrm_amdgpu.so.1
/usr/lib64/libdrm_amdgpu.so.1.0.0
/usr/lib64/libdrm_intel.so.1
/usr/lib64/libdrm_intel.so.1.0.0
/usr/lib64/libdrm_nouveau.so.2
/usr/lib64/libdrm_nouveau.so.2.0.0
/usr/lib64/libdrm_radeon.so.1
/usr/lib64/libdrm_radeon.so.1.0.1
/usr/lib64/libkms.so.1
/usr/lib64/libkms.so.1.0.0
/usr/share/doc/libdrm
/usr/share/doc/libdrm/README.rst
/usr/share/libdrm
/usr/share/libdrm/amdgpu.ids

References

Summary

In this tutorial we learn how to install libdrm on Fedora 34 using yum and dnf.