How To Install python-mutagen on CentOS 7

In this tutorial we learn how to install python-mutagen on CentOS 7. python-mutagen is Mutagen is a Python module to handle audio metadata

Introduction

In this tutorial we learn how to install python-mutagen on CentOS 7.

What is python-mutagen

Mutagen is a Python module to handle audio metadata. It supports reading ID3 (all versions), APEv2, FLAC, and Ogg Vorbis/FLAC/Theora. It can write ID3v1.1, ID3v2.4, APEv2, FLAC, and Ogg Vorbis/FLAC/Theora comments. It can also read MPEG audio and Xing headers, FLAC stream info blocks, and Ogg Vorbis/FLAC/Theora stream headers. Finally, it includes a module to handle generic Ogg bitstreams.

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

Install python-mutagen on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install python-mutagen using yum by running the following command:

sudo yum -y install python-mutagen

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

sudo dnf -y install python-mutagen

How To Uninstall python-mutagen on CentOS 7

To uninstall only the python-mutagen package we can use the following command:

sudo dnf remove python-mutagen

References

Summary

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