How To Install python3-maxminddb on Rocky Linux 8

In this tutorial we learn how to install python3-maxminddb on Rocky Linux 8. python3-maxminddb is Documentation for maxminddb

Introduction

In this tutorial we learn how to install python3-maxminddb on Rocky Linux 8.

What is python3-maxminddb

This is a Python module for reading MaxMind DB files. The module includes both a pure Python reader and an optional C extension. MaxMind DB is a binary file format that stores data indexed by IP address subnets (IPv4 or IPv6).

We can use yum or dnf to install python3-maxminddb on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-maxminddb.

Install python3-maxminddb on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-maxminddb using dnf by running the following command:

sudo dnf -y install python3-maxminddb

Install python3-maxminddb on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install python3-maxminddb

How To Uninstall python3-maxminddb on Rocky Linux 8

To uninstall only the python3-maxminddb package we can use the following command:

sudo dnf remove python3-maxminddb

python3-maxminddb Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/07
/usr/lib/.build-id/07/e5269b908f625db65e5a2fc803b5d7750fb09a
/usr/lib64/python3.6/site-packages/maxminddb
/usr/lib64/python3.6/site-packages/maxminddb-1.5.1-py3.6.egg-info
/usr/lib64/python3.6/site-packages/maxminddb-1.5.1-py3.6.egg-info/PKG-INFO
/usr/lib64/python3.6/site-packages/maxminddb-1.5.1-py3.6.egg-info/SOURCES.txt
/usr/lib64/python3.6/site-packages/maxminddb-1.5.1-py3.6.egg-info/dependency_links.txt
/usr/lib64/python3.6/site-packages/maxminddb-1.5.1-py3.6.egg-info/top_level.txt
/usr/lib64/python3.6/site-packages/maxminddb/__init__.py
/usr/lib64/python3.6/site-packages/maxminddb/__pycache__
/usr/lib64/python3.6/site-packages/maxminddb/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/maxminddb/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/maxminddb/__pycache__/compat.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/maxminddb/__pycache__/compat.cpython-36.pyc
/usr/lib64/python3.6/site-packages/maxminddb/__pycache__/const.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/maxminddb/__pycache__/const.cpython-36.pyc
/usr/lib64/python3.6/site-packages/maxminddb/__pycache__/decoder.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/maxminddb/__pycache__/decoder.cpython-36.pyc
/usr/lib64/python3.6/site-packages/maxminddb/__pycache__/errors.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/maxminddb/__pycache__/errors.cpython-36.pyc
/usr/lib64/python3.6/site-packages/maxminddb/__pycache__/file.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/maxminddb/__pycache__/file.cpython-36.pyc
/usr/lib64/python3.6/site-packages/maxminddb/__pycache__/reader.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/maxminddb/__pycache__/reader.cpython-36.pyc
/usr/lib64/python3.6/site-packages/maxminddb/compat.py
/usr/lib64/python3.6/site-packages/maxminddb/const.py
/usr/lib64/python3.6/site-packages/maxminddb/decoder.py
/usr/lib64/python3.6/site-packages/maxminddb/errors.py
/usr/lib64/python3.6/site-packages/maxminddb/extension.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/maxminddb/file.py
/usr/lib64/python3.6/site-packages/maxminddb/reader.py
/usr/share/doc/python3-maxminddb
/usr/share/doc/python3-maxminddb/README.rst
/usr/share/licenses/python3-maxminddb
/usr/share/licenses/python3-maxminddb/LICENSE

References

Summary

In this tutorial we learn how to install python3-maxminddb on Rocky Linux 8 using yum and dnf.