How To Install mod_maxminddb on Fedora 36

In this tutorial we learn how to install mod_maxminddb in Fedora 36. mod_maxminddb is Module for the Apache web server to query MaxMind DB files

Introduction

In this tutorial we learn how to install mod_maxminddb on Fedora 36.

What is mod_maxminddb

The mod_maxminddb allows to query MaxMind DB files from the Apache web server using the libmaxminddb library. The MaxMind DB files are provided as free GeoLite2 databases as well as commercial GeoIP2 databases.

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

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

sudo dnf -y install mod_maxminddb

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

sudo yum -y install mod_maxminddb

How To Uninstall mod_maxminddb on Fedora 36

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

sudo dnf remove mod_maxminddb

mod_maxminddb Package Contents on Fedora 36

/etc/httpd/conf.d/maxminddb.conf
/etc/httpd/conf.modules.d/10-maxminddb.conf
/usr/lib/.build-id
/usr/lib/.build-id/0e
/usr/lib/.build-id/0e/07ee06cc8901894600596e08b0b8e4a214d25a
/usr/lib64/httpd/modules/mod_maxminddb.so
/usr/share/doc/mod_maxminddb
/usr/share/doc/mod_maxminddb/Changes.md
/usr/share/doc/mod_maxminddb/README.md
/usr/share/licenses/mod_maxminddb
/usr/share/licenses/mod_maxminddb/LICENSE

References

Summary

In this tutorial we learn how to install mod_maxminddb on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).