How To Install GeoIP.x86_64 on Amazon Linux 2

In this tutorial we learn how to install GeoIP.x86_64 in Amazon Linux 2. GeoIP.x86_64 is Library for country/city/organization to IP address or hostname

Introduction

In this tutorial we learn how to install GeoIP.x86_64 on Amazon Linux 2.

What is GeoIP.x86_64

GeoIP is a C library that enables the user to find the country that any IP address or hostname originates from. It uses a file based database that is accurate as of June 2007 and can optionally be updated on a weekly basis by installing the GeoIP-update package. This database simply contains IP blocks as keys, and countries as values. This database should be more complete and accurate than using reverse DNS lookups. This package includes GeoLite data created by MaxMind, available from http

We can use yum to install GeoIP.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install GeoIP.x86_64.

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

sudo yum -y install GeoIP.x86_64

How To Uninstall GeoIP.x86_64 on Amazon Linux 2

To uninstall only the GeoIP.x86_64 package we can use the following command:

sudo yum remove GeoIP.x86_64

GeoIP.x86_64 Package Contents on Amazon Linux 2

/etc/GeoIP.conf
/etc/GeoIP.conf.default
/usr/bin/geoiplookup
/usr/bin/geoiplookup6
/usr/bin/geoipupdate
/usr/lib64/libGeoIP.so.1
/usr/lib64/libGeoIP.so.1.5.0
/usr/lib64/libGeoIPUpdate.so.0
/usr/lib64/libGeoIPUpdate.so.0.0.0
/usr/share/GeoIP
/usr/share/GeoIP/GeoIP-initial.dat
/usr/share/GeoIP/GeoIP.dat
/usr/share/GeoIP/GeoIPASNum.dat
/usr/share/GeoIP/GeoIPASNumv6.dat
/usr/share/GeoIP/GeoIPCity.dat
/usr/share/GeoIP/GeoIPCityv6.dat
/usr/share/GeoIP/GeoIPCountry.dat
/usr/share/GeoIP/GeoIPCountryv6.dat
/usr/share/GeoIP/GeoIPv6-initial.dat
/usr/share/GeoIP/GeoIPv6.dat
/usr/share/doc/GeoIP-1.5.0
/usr/share/doc/GeoIP-1.5.0/AUTHORS
/usr/share/doc/GeoIP-1.5.0/COPYING
/usr/share/doc/GeoIP-1.5.0/ChangeLog
/usr/share/doc/GeoIP-1.5.0/LICENSE.txt
/usr/share/doc/GeoIP-1.5.0/README
/usr/share/doc/GeoIP-1.5.0/TODO
/usr/share/doc/GeoIP-1.5.0/fetch-geoipdata-city.pl
/usr/share/doc/GeoIP-1.5.0/fetch-geoipdata.pl
/usr/share/man/man1/geoiplookup.1.gz
/usr/share/man/man1/geoiplookup6.1.gz
/usr/share/man/man1/geoipupdate.1.gz

References

Summary

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