How To Install glfw on Fedora 34

glfw is A cross-platform multimedia library A cross-platform multimedia library

Introduction

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

What is glfw

GLFW is a free, Open Source, multi-platform library for OpenGL application development that provides a powerful API for handling operating system specific tasks such as opening an OpenGL window, reading keyboard, mouse, joystick and time input, creating threads, and more. glfw 1 3.3.4 2.fc34 x86_64 91 k glfw-3.3.4-2.fc34.src.rpm updates A cross-platform multimedia library http zlib GLFW is a free, Open Source, multi-platform library for OpenGL application development that provides a powerful API for handling operating system specific tasks such as opening an OpenGL window, reading keyboard, mouse, joystick and time input, creating threads, and more.

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

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

sudo dnf -y install glfw

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

sudo yum -y install glfw

How To Uninstall glfw on Fedora 34

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

sudo dnf remove glfw

glfw Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/0e
/usr/lib/.build-id/0e/5fe20bb28636a69601cecb79f6d072668c9026
/usr/lib/libglfw.so.3
/usr/lib/libglfw.so.3.3
/usr/share/doc/glfw
/usr/share/doc/glfw/README.md
/usr/share/licenses/glfw
/usr/share/licenses/glfw/LICENSE.md
/usr/lib/.build-id
/usr/lib/.build-id/6b
/usr/lib/.build-id/6b/779c5d619d59d3251b118a7183de7a3c811b44
/usr/lib/libglfw.so.3
/usr/lib/libglfw.so.3.3
/usr/share/doc/glfw
/usr/share/doc/glfw/README.md
/usr/share/licenses/glfw
/usr/share/licenses/glfw/LICENSE.md
/usr/lib/.build-id
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/ca51a78bd8bfb9dbd26460b3c81d7192f01a24
/usr/lib64/libglfw.so.3
/usr/lib64/libglfw.so.3.3
/usr/share/doc/glfw
/usr/share/doc/glfw/README.md
/usr/share/licenses/glfw
/usr/share/licenses/glfw/LICENSE.md
/usr/lib/.build-id
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/fe1eccb3526fe489ca8a44c45467b4a3db14e1
/usr/lib64/libglfw.so.3
/usr/lib64/libglfw.so.3.3
/usr/share/doc/glfw
/usr/share/doc/glfw/README.md
/usr/share/licenses/glfw
/usr/share/licenses/glfw/LICENSE.md

References

Summary

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