How To Install GeographicLib on AlmaLinux 8

In this tutorial we learn how to install GeographicLib in AlmaLinux 8. GeographicLib is Library for geographic coordinate transformations

Introduction

In this tutorial we learn how to install GeographicLib on AlmaLinux 8.

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 AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install GeographicLib.

Install GeographicLib on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install GeographicLib

Install GeographicLib on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install GeographicLib

How To Uninstall GeographicLib on AlmaLinux 8

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 AlmaLinux 8 using yum and dnf.