How To Install SFML on Fedora 34
Introduction
In this tutorial we learn how to install SFML
on Fedora 34.
What is SFML
SFML is a portable and easy to use multimedia API written in C++. You can see it as a modern, object-oriented alternative to SDL. SFML is composed of several packages to perfectly suit your needs. You can use SFML as a minimal windowing system to interface with OpenGL, or as a fully-featured multimedia library for building games or interactive programs. SFML 2.5.1 8.fc34 x86_64 288 k SFML-2.5.1-8.fc34.src.rpm fedora Simple and Fast Multimedia Library http zlib and Public Domain SFML is a portable and easy to use multimedia API written in C++. You can see it as a modern, object-oriented alternative to SDL. SFML is composed of several packages to perfectly suit your needs. You can use SFML as a minimal windowing system to interface with OpenGL, or as a fully-featured multimedia library for building games or interactive programs.
We can use yum
or dnf
to install SFML
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install SFML.
Install SFML 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 SFML
using dnf
by running the following command:
sudo dnf -y install SFML
Install SFML 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 SFML
using yum
by running the following command:
sudo yum -y install SFML
How To Uninstall SFML on Fedora 34
To uninstall only the SFML
package we can use the following command:
sudo dnf remove SFML
SFML Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/42
/usr/lib/.build-id/42/a0f3379fe5e58333b516ea493917d3cfe91d6a
/usr/lib/.build-id/62
/usr/lib/.build-id/62/6f357892625ba620bb511ee276a4a7f2dab2bc
/usr/lib/.build-id/69
/usr/lib/.build-id/69/679908728d9e96b5e5fafe919306a849d67fa6
/usr/lib/.build-id/92
/usr/lib/.build-id/92/83759cc5ba25025732617f56221e745c2dae03
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/cfd8d01cba23c0d9abcc1dd88d9e0fa69c1cfc
/usr/lib/libsfml-audio.so.2.5
/usr/lib/libsfml-audio.so.2.5.1
/usr/lib/libsfml-graphics.so.2.5
/usr/lib/libsfml-graphics.so.2.5.1
/usr/lib/libsfml-network.so.2.5
/usr/lib/libsfml-network.so.2.5.1
/usr/lib/libsfml-system.so.2.5
/usr/lib/libsfml-system.so.2.5.1
/usr/lib/libsfml-window.so.2.5
/usr/lib/libsfml-window.so.2.5.1
/usr/share/SFML/license.md
/usr/share/SFML/readme.md
/usr/lib/.build-id
/usr/lib/.build-id/53
/usr/lib/.build-id/53/b529795e363a4ad2f2beeab9a680984771e077
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/e6c7b9b102ae37317d2f18f5e9168f33babc9e
/usr/lib/.build-id/84
/usr/lib/.build-id/84/d4eef0584f6f8b0f02d09fc315a78e465d870b
/usr/lib/.build-id/e6
/usr/lib/.build-id/e6/52a79cad85acc2455b36590a63ca55708d267a
/usr/lib/.build-id/f2
/usr/lib/.build-id/f2/1fba89d0949f7494112f8b94bf67f789f81997
/usr/lib64/libsfml-audio.so.2.5
/usr/lib64/libsfml-audio.so.2.5.1
/usr/lib64/libsfml-graphics.so.2.5
/usr/lib64/libsfml-graphics.so.2.5.1
/usr/lib64/libsfml-network.so.2.5
/usr/lib64/libsfml-network.so.2.5.1
/usr/lib64/libsfml-system.so.2.5
/usr/lib64/libsfml-system.so.2.5.1
/usr/lib64/libsfml-window.so.2.5
/usr/lib64/libsfml-window.so.2.5.1
/usr/share/SFML/license.md
/usr/share/SFML/readme.md
References
- [SFML website](http://www.sfml-dev.org/ http://www.sfml-dev.org/)
Summary
In this tutorial we learn how to install SFML
on Fedora 34 using yum and dnf.