How To Install php-getid3 on CentOS 7

In this tutorial we learn how to install php-getid3 on CentOS 7. php-getid3 is The PHP media file parser

Introduction

In this tutorial we learn how to install php-getid3 on CentOS 7.

What is php-getid3

getID3() is a PHP script that extracts useful information (such as ID3 tags, bitrate, playtime, etc.) from MP3s & other multimedia file formats (Ogg, WMA, WMV, ASF, WAV, AVI, AAC, VQF, FLAC, MusePack, Real, QuickTime, Monkey’s Audio, MIDI and more). Autoloader

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

Install php-getid3 on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install php-getid3

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

sudo dnf -y install php-getid3

How To Uninstall php-getid3 on CentOS 7

To uninstall only the php-getid3 package we can use the following command:

sudo dnf remove php-getid3

References

Summary

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