How To Install libtimidity on CentOS 7

In this tutorial we learn how to install libtimidity on CentOS 7. libtimidity is MIDI to WAVE converter library

Introduction

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

What is libtimidity

This library is based on the TiMidity decoder from SDL_sound library. Purpose to create this library is to avoid unnecessary dependences. SDL_sound requires SDL and some other libraries, that not needed to process MIDI files. In addition libtimidity provides more suitable API to work with MIDI songs, it enables to specify full path to the timidity configuration file, and have function to retrieve meta data from MIDI song.

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

Install libtimidity on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install libtimidity

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

sudo dnf -y install libtimidity

How To Uninstall libtimidity on CentOS 7

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

sudo dnf remove libtimidity

References

Summary

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