How To Install libmaxminddb on Rocky Linux 8

In this tutorial we learn how to install libmaxminddb on Rocky Linux 8. libmaxminddb is C library for the MaxMind DB file format

Introduction

In this tutorial we learn how to install libmaxminddb on Rocky Linux 8.

What is libmaxminddb

The package contains libmaxminddb library.

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

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

sudo dnf -y install libmaxminddb

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

sudo yum -y install libmaxminddb

How To Uninstall libmaxminddb on Rocky Linux 8

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

sudo dnf remove libmaxminddb

libmaxminddb Package Contents on Rocky Linux 8

/usr/bin/mmdblookup
/usr/lib/.build-id
/usr/lib/.build-id/28
/usr/lib/.build-id/28/3e826fce0403becd54486b9076dc77125b5c99
/usr/lib/.build-id/75
/usr/lib/.build-id/75/cb79581271848c0d5261dec9cf7ad4b07e7f23
/usr/lib/libmaxminddb.so.0
/usr/lib/libmaxminddb.so.0.0.7
/usr/share/licenses/libmaxminddb
/usr/share/licenses/libmaxminddb/LICENSE
/usr/share/man/man1/mmdblookup.1.gz
/usr/bin/mmdblookup
/usr/lib/.build-id
/usr/lib/.build-id/5a
/usr/lib/.build-id/5a/824c38d61439bc45d0f3bba5955bc289e6180b
/usr/lib/.build-id/69
/usr/lib/.build-id/69/4733fa1f4c4b7129886d446165c12ef31db2e2
/usr/lib64/libmaxminddb.so.0
/usr/lib64/libmaxminddb.so.0.0.7
/usr/share/licenses/libmaxminddb
/usr/share/licenses/libmaxminddb/LICENSE
/usr/share/man/man1/mmdblookup.1.gz

References

Summary

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