How To Install libopenmpt on CentOS 7

In this tutorial we learn how to install libopenmpt on CentOS 7. libopenmpt is C/C++ library to decode tracker music module (MOD) files

Introduction

In this tutorial we learn how to install libopenmpt on CentOS 7.

What is libopenmpt

libopenmpt is a cross-platform C++ and C library to decode tracked music files (modules) into a raw PCM audio stream. libopenmpt is based on the player code of the OpenMPT project (Open ModPlug Tracker). In order to avoid code base fragmentation, libopenmpt is developed in the same source code repository as OpenMPT.

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

Install libopenmpt on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install libopenmpt

Install libopenmpt on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install libopenmpt

How To Uninstall libopenmpt on CentOS 7

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

sudo dnf remove libopenmpt

References

Summary

In this tutorial we learn how to install libopenmpt on CentOS 7 using yum and dnf.