How To Install GeoIP-data.noarch on Amazon Linux 2

In this tutorial we learn how to install GeoIP-data.noarch in Amazon Linux 2. GeoIP-data.noarch is Static snapshot of GeoIP databases

Introduction

In this tutorial we learn how to install GeoIP-data.noarch on Amazon Linux 2.

What is GeoIP-data.noarch

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 to install GeoIP-data.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install GeoIP-data.noarch.

Install GeoIP-data.noarch on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install GeoIP-data.noarch

How To Uninstall GeoIP-data.noarch on Amazon Linux 2

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

sudo yum remove GeoIP-data.noarch

GeoIP-data.noarch Package Contents on Amazon Linux 2

/usr/share/GeoIP/GeoIPASNum-initial.dat
/usr/share/GeoIP/GeoIPASNumv6-initial.dat
/usr/share/GeoIP/GeoIPCity-initial.dat
/usr/share/GeoIP/GeoIPCityv6-initial.dat

References

Summary

In this tutorial we learn how to install GeoIP-data.noarch on Amazon Linux 2 using yum.