How To Install GeoIP-devel.x86_64 on Amazon Linux 2

In this tutorial we learn how to install GeoIP-devel.x86_64 in Amazon Linux 2. GeoIP-devel.x86_64 is Development headers and libraries for GeoIP

Introduction

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

What is GeoIP-devel.x86_64

Development headers and static libraries for building GeoIP-based applications.

We can use yum to install GeoIP-devel.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-devel.x86_64.

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

sudo yum -y install GeoIP-devel.x86_64

How To Uninstall GeoIP-devel.x86_64 on Amazon Linux 2

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

sudo yum remove GeoIP-devel.x86_64

GeoIP-devel.x86_64 Package Contents on Amazon Linux 2

/usr/include/GeoIP.h
/usr/include/GeoIPCity.h
/usr/include/GeoIPUpdate.h
/usr/lib64/libGeoIP.so
/usr/lib64/libGeoIPUpdate.so
/usr/lib64/pkgconfig/geoip.pc

References

Summary

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