How To Install SDL2_ttf on Fedora 34
Introduction
In this tutorial we learn how to install SDL2_ttf
on Fedora 34.
What is SDL2_ttf
This library allows you to use TrueType fonts to render text in SDL2 applications. SDL2_ttf 2.0.15 7.fc34 x86_64 25 k SDL2_ttf-2.0.15-7.fc34.src.rpm fedora TrueType font rendering library for SDL2 https zlib This library allows you to use TrueType fonts to render text in SDL2 applications.
We can use yum
or dnf
to install SDL2_ttf
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install SDL2_ttf.
Install SDL2_ttf 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 SDL2_ttf
using dnf
by running the following command:
sudo dnf -y install SDL2_ttf
Install SDL2_ttf 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 SDL2_ttf
using yum
by running the following command:
sudo yum -y install SDL2_ttf
How To Uninstall SDL2_ttf on Fedora 34
To uninstall only the SDL2_ttf
package we can use the following command:
sudo dnf remove SDL2_ttf
SDL2_ttf Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/26
/usr/lib/.build-id/26/02456b9e2e9e0c0c102343983810a03faa652a
/usr/lib/libSDL2_ttf-2.0.so.0
/usr/lib/libSDL2_ttf-2.0.so.0.14.1
/usr/share/doc/SDL2_ttf
/usr/share/doc/SDL2_ttf/CHANGES.txt
/usr/share/doc/SDL2_ttf/README.txt
/usr/share/licenses/SDL2_ttf
/usr/share/licenses/SDL2_ttf/COPYING.txt
/usr/lib/.build-id
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/9b5d9a7630cecfcc43afc384920b5893fbf8e8
/usr/lib64/libSDL2_ttf-2.0.so.0
/usr/lib64/libSDL2_ttf-2.0.so.0.14.1
/usr/share/doc/SDL2_ttf
/usr/share/doc/SDL2_ttf/CHANGES.txt
/usr/share/doc/SDL2_ttf/README.txt
/usr/share/licenses/SDL2_ttf
/usr/share/licenses/SDL2_ttf/COPYING.txt
References
- [SDL2_ttf website](https://www.libsdl.org/projects/SDL_ttf/ https://www.libsdl.org/projects/SDL_ttf/)
Summary
In this tutorial we learn how to install SDL2_ttf
on Fedora 34 using yum and dnf.