How To Install libmad on AlmaLinux 8

In this tutorial we learn how to install libmad in AlmaLinux 8. libmad is MPEG audio decoder library

Introduction

In this tutorial we learn how to install libmad on AlmaLinux 8.

What is libmad

MAD is a high-quality MPEG audio decoder. It currently supports MPEG-1 and the MPEG-2 extension to Lower Sampling Frequencies, as well as the so-called MPEG 2.5 format. All three audio layers (Layer I, Layer II, and Layer III a.k.a. MP3) are fully implemented.

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

Install libmad on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install libmad using dnf by running the following command:

sudo dnf -y install libmad

Install libmad on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libmad using yum by running the following command:

sudo yum -y install libmad

How To Uninstall libmad on AlmaLinux 8

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

sudo dnf remove libmad

References

Summary

In this tutorial we learn how to install libmad on AlmaLinux 8 using yum and dnf.