How To Install GeoIP-data on CentOS 7

In this tutorial we learn how to install GeoIP-data on CentOS 7. GeoIP-data is Static snapshot of GeoIP databases

Introduction

In this tutorial we learn how to install GeoIP-data on CentOS 7.

What is GeoIP-data

Snapshot of IPv4 and IPv6 databases for GeoIP. These databases are not regularly updated, use a cron job from GeoIP-update package to get fresh ones. This package includes GeoLite data created by MaxMind, available from http

We can use yum or dnf to install GeoIP-data on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install GeoIP-data.

Install GeoIP-data on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install GeoIP-data

Install GeoIP-data on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install GeoIP-data

How To Uninstall GeoIP-data on CentOS 7

To uninstall only the GeoIP-data package we can use the following command:

sudo dnf remove GeoIP-data

References

Summary

In this tutorial we learn how to install GeoIP-data on CentOS 7 using yum and dnf.