How To Install GeographicLib on CentOS 7

In this tutorial we learn how to install GeographicLib on CentOS 7. GeographicLib is Library for geographic coordinate transformations

Introduction

In this tutorial we learn how to install GeographicLib on CentOS 7.

What is GeographicLib

GeographicLib is a small set of C++ classes for performing conversions between geographic, UTM, UPS, MGRS, geocentric, and local Cartesian coordinates, for gravity (e.g., EGM2008), geoid height and geomagnetic field (e.g., WMM2010) calculations, and for solving geodesic problems. The emphasis is on returning accurate results with errors close to round-off (about 5–15 nanometers). New accurate algorithms for Geodesics on an ellipsoid of revolution and Transverse Mercator projection have been developed for this library. The functionality of the library can be accessed from user code, from the Utility programs provided, or via the Implementations in other languages.

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

Install GeographicLib on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install GeographicLib using yum by running the following command:

sudo yum -y install GeographicLib

Install GeographicLib 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 GeographicLib using dnf by running the following command:

sudo dnf -y install GeographicLib

How To Uninstall GeographicLib on CentOS 7

To uninstall only the GeographicLib package we can use the following command:

sudo dnf remove GeographicLib

References

Summary

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