How To Install SDL_mixer on Fedora 34

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

Introduction

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

What is SDL_mixer

A simple multi-channel audio mixer for SDL. It supports 4 channels of 16 bit stereo audio, plus a single channel of music, mixed by the popular MikMod MOD, Timidity MIDI and Ogg Vorbis libraries. SDL_mixer 1.2.12 22.fc34 x86_64 88 k SDL_mixer-1.2.12-22.fc34.src.rpm fedora Simple DirectMedia Layer - Sample Mixer Library http LGPLv2 A simple multi-channel audio mixer for SDL. It supports 4 channels of 16 bit stereo audio, plus a single channel of music, mixed by the popular MikMod MOD, Timidity MIDI and Ogg Vorbis libraries.

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

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

sudo dnf -y install SDL_mixer

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

sudo yum -y install SDL_mixer

How To Uninstall SDL_mixer on Fedora 34

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

sudo dnf remove SDL_mixer

SDL_mixer Package Contents on Fedora 34

/usr/bin/playmus
/usr/bin/playwave
/usr/lib/.build-id
/usr/lib/.build-id/63
/usr/lib/.build-id/63/5cf64108ec52723269bee48792156654c59e2c
/usr/lib/.build-id/83
/usr/lib/.build-id/83/75b699af4d7af76208e8e5bdacc763a8cdb25d
/usr/lib/.build-id/e6
/usr/lib/.build-id/e6/41a611e532ebd852e5bc4ee9ab5e98af8791cb
/usr/lib/libSDL_mixer-1.2.so.0
/usr/lib/libSDL_mixer-1.2.so.0.12.0
/usr/share/doc/SDL_mixer
/usr/share/doc/SDL_mixer/CHANGES
/usr/share/doc/SDL_mixer/COPYING
/usr/share/doc/SDL_mixer/README
/usr/bin/playmus
/usr/bin/playwave
/usr/lib/.build-id
/usr/lib/.build-id/77
/usr/lib/.build-id/77/98575c0a842ebf830810e64b7e872f7570d9fa
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/c774ac78f723052184149ff22a202792f1735f
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/683f74ebf4572fe6c257c8b65459e34be068a8
/usr/lib64/libSDL_mixer-1.2.so.0
/usr/lib64/libSDL_mixer-1.2.so.0.12.0
/usr/share/doc/SDL_mixer
/usr/share/doc/SDL_mixer/CHANGES
/usr/share/doc/SDL_mixer/COPYING
/usr/share/doc/SDL_mixer/README

References

Summary

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