How To Install perl-Geo-Distance on CentOS 8

In this tutorial we learn how to install perl-Geo-Distance on CentOS 8. perl-Geo-Distance is Calculate distances and closest locations

Introduction

In this tutorial we learn how to install perl-Geo-Distance on CentOS 8.

What is perl-Geo-Distance

This Perl library aims to provide as many tools to make it as simple as possible to calculate distances between geographic points, and anything that can be derived from that. Currently there is support for finding the closest locations within a specified distance, to find the closest number of points to a specified point, and to do basic point-to-point distance calculations. This Perl module is deprecated, use GIS

We can use yum or dnf to install perl-Geo-Distance on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Geo-Distance.

Install perl-Geo-Distance on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install perl-Geo-Distance using yum by running the following command:

sudo yum -y install perl-Geo-Distance

Install perl-Geo-Distance on CentOS 8 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 perl-Geo-Distance using dnf by running the following command:

sudo dnf -y install perl-Geo-Distance

How To Uninstall perl-Geo-Distance on CentOS 8

To uninstall only the perl-Geo-Distance package we can use the following command:

sudo dnf remove perl-Geo-Distance

References

Summary

In this tutorial we learn how to install perl-Geo-Distance on CentOS 8 using yum and dnf.