How To Install SDL2_mixer on Fedora 34

SDL2_mixer is Simple DirectMedia Layer - Sample Mixer Library Simple DirectMedia Layer - Sample Mixer Library

Introduction

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

What is SDL2_mixer

SDL_mixer is a sample multi-channel audio mixer library. It supports any number of simultaneously playing channels of 16 bit stereo audio, plus a single channel of music, mixed by the popular FLAC, MikMod MOD, Timidity MIDI, Ogg Vorbis, and SMPEG MP3 libraries. SDL2_mixer 2.0.4 8.fc34 x86_64 81 k SDL2_mixer-2.0.4-8.fc34.src.rpm fedora Simple DirectMedia Layer - Sample Mixer Library https zlib SDL_mixer is a sample multi-channel audio mixer library. It supports any number of simultaneously playing channels of 16 bit stereo audio, plus a single channel of music, mixed by the popular FLAC, MikMod MOD, Timidity MIDI, Ogg Vorbis, and SMPEG MP3 libraries.

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

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

sudo dnf -y install SDL2_mixer

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

sudo yum -y install SDL2_mixer

How To Uninstall SDL2_mixer on Fedora 34

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

sudo dnf remove SDL2_mixer

SDL2_mixer Package Contents on Fedora 34

/usr/bin/playmus2
/usr/bin/playwave2
/usr/lib/.build-id
/usr/lib/.build-id/33
/usr/lib/.build-id/33/d1d3999856d5e4c8bbd84fffa1b95f87950456
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/1e192878734dd66e6264baf4b09566d98ccc3b
/usr/lib/.build-id/92
/usr/lib/.build-id/92/14d4a8e7df5d9426cdc23be0f9c81a6dedaa9d
/usr/lib64/libSDL2_mixer-2.0.so.0
/usr/lib64/libSDL2_mixer-2.0.so.0.2.2
/usr/share/doc/SDL2_mixer
/usr/share/doc/SDL2_mixer/CHANGES.txt
/usr/share/licenses/SDL2_mixer
/usr/share/licenses/SDL2_mixer/COPYING.txt
/usr/bin/playmus2
/usr/bin/playwave2
/usr/lib/.build-id
/usr/lib/.build-id/70
/usr/lib/.build-id/70/132dccfec487a4f424b920651066cbf466c45f
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/cc6fcaaf34c9c6f61b228a175f04bd34ec072a
/usr/lib/.build-id/da
/usr/lib/.build-id/da/6e6ca2a039d92efda7f644dbebe3dd02f6173a
/usr/lib/libSDL2_mixer-2.0.so.0
/usr/lib/libSDL2_mixer-2.0.so.0.2.2
/usr/share/doc/SDL2_mixer
/usr/share/doc/SDL2_mixer/CHANGES.txt
/usr/share/licenses/SDL2_mixer
/usr/share/licenses/SDL2_mixer/COPYING.txt

References

Summary

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