How To Install php-maxmind-db-reader on Fedora 36

In this tutorial we learn how to install php-maxmind-db-reader in Fedora 36. php-maxmind-db-reader is MaxMind DB Reader

Introduction

In this tutorial we learn how to install php-maxmind-db-reader on Fedora 36.

What is php-maxmind-db-reader

MaxMind DB Reader PHP API. MaxMind DB is a binary file format that stores data indexed by IP address subnets (IPv4 or IPv6). Databases are available in geolite2-country and geolite2-city packages. The extension available in php-maxminddb package allow better performance. Autoloader

We can use yum or dnf to install php-maxmind-db-reader on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-maxmind-db-reader.

Install php-maxmind-db-reader on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install php-maxmind-db-reader using dnf by running the following command:

sudo dnf -y install php-maxmind-db-reader

Install php-maxmind-db-reader on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install php-maxmind-db-reader

How To Uninstall php-maxmind-db-reader on Fedora 36

To uninstall only the php-maxmind-db-reader package we can use the following command:

sudo dnf remove php-maxmind-db-reader

php-maxmind-db-reader Package Contents on Fedora 36

/usr/share/doc/php-maxmind-db-reader
/usr/share/doc/php-maxmind-db-reader/CHANGELOG.md
/usr/share/doc/php-maxmind-db-reader/README.md
/usr/share/doc/php-maxmind-db-reader/composer.json
/usr/share/licenses/php-maxmind-db-reader
/usr/share/licenses/php-maxmind-db-reader/LICENSE
/usr/share/php/MaxMind
/usr/share/php/MaxMind/Db
/usr/share/php/MaxMind/Db/Reader
/usr/share/php/MaxMind/Db/Reader.php
/usr/share/php/MaxMind/Db/Reader/Decoder.php
/usr/share/php/MaxMind/Db/Reader/InvalidDatabaseException.php
/usr/share/php/MaxMind/Db/Reader/Metadata.php
/usr/share/php/MaxMind/Db/Reader/Util.php
/usr/share/php/MaxMind/Db/Reader/autoload.php

References

Summary

In this tutorial we learn how to install php-maxmind-db-reader on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).