How To Install php-maxminddb on Fedora 36
Introduction
In this tutorial we learn how to install php-maxminddb
on Fedora 36.
What is php-maxminddb
MaxMind DB is a binary file format that stores data indexed by IP address subnets (IPv4 or IPv6). This optional PHP C Extension is a drop-in replacement for MaxMind\Db\Reader. Databases are available in geolite2-country and geolite2-city packages.
We can use yum
or dnf
to install php-maxminddb
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-maxminddb.
Install php-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 php-maxminddb
using dnf
by running the following command:
sudo dnf -y install php-maxminddb
Install php-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 php-maxminddb
using yum
by running the following command:
sudo yum -y install php-maxminddb
How To Uninstall php-maxminddb on Fedora 36
To uninstall only the php-maxminddb
package we can use the following command:
sudo dnf remove php-maxminddb
php-maxminddb Package Contents on Fedora 36
/etc/php-zts.d/40-maxminddb.ini
/etc/php.d/40-maxminddb.ini
/usr/lib/.build-id
/usr/lib/.build-id/37
/usr/lib/.build-id/37/e7829eeff9181b7baf6146c50e3bffb7bbfad6
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/26c73eaddf908b6bc21cb237d4d9df7c74e48b
/usr/lib64/php-zts/modules/maxminddb.so
/usr/lib64/php/modules/maxminddb.so
/usr/share/doc/php-maxminddb
/usr/share/doc/php-maxminddb/CHANGELOG.md
/usr/share/doc/php-maxminddb/README.md
/usr/share/licenses/php-maxminddb
/usr/share/licenses/php-maxminddb/LICENSE
/var/lib/php/peclxml/php-maxminddb.xml
References
Summary
In this tutorial we learn how to install php-maxminddb
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).