How To Install GeographicLib-devel on CentOS 8

GeographicLib-devel is Development files and libraries for GeographicLib

Introduction

In this tutorial we learn how to install GeographicLib-devel on CentOS 8.

What is GeographicLib-devel

This package contains the header files and libraries for GeographicLib. If you like to develop programs using GeographicLib, you will need to install GeographicLib-devel.

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

Install GeographicLib-devel on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install GeographicLib-devel

Install GeographicLib-devel on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install GeographicLib-devel

How To Uninstall GeographicLib-devel on CentOS 8

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

sudo dnf remove GeographicLib-devel

GeographicLib-devel Package Contents on CentOS 8

/usr/include/GeographicLib
/usr/include/GeographicLib/Accumulator.hpp
/usr/include/GeographicLib/AlbersEqualArea.hpp
/usr/include/GeographicLib/AzimuthalEquidistant.hpp
/usr/include/GeographicLib/CassiniSoldner.hpp
/usr/include/GeographicLib/CircularEngine.hpp
/usr/include/GeographicLib/Config.h
/usr/include/GeographicLib/Constants.hpp
/usr/include/GeographicLib/DMS.hpp
/usr/include/GeographicLib/Ellipsoid.hpp
/usr/include/GeographicLib/EllipticFunction.hpp
/usr/include/GeographicLib/GARS.hpp
/usr/include/GeographicLib/GeoCoords.hpp
/usr/include/GeographicLib/Geocentric.hpp
/usr/include/GeographicLib/Geodesic.hpp
/usr/include/GeographicLib/GeodesicExact.hpp
/usr/include/GeographicLib/GeodesicLine.hpp
/usr/include/GeographicLib/GeodesicLineExact.hpp
/usr/include/GeographicLib/Geohash.hpp
/usr/include/GeographicLib/Geoid.hpp
/usr/include/GeographicLib/Georef.hpp
/usr/include/GeographicLib/Gnomonic.hpp
/usr/include/GeographicLib/GravityCircle.hpp
/usr/include/GeographicLib/GravityModel.hpp
/usr/include/GeographicLib/LambertConformalConic.hpp
/usr/include/GeographicLib/LocalCartesian.hpp
/usr/include/GeographicLib/MGRS.hpp
/usr/include/GeographicLib/MagneticCircle.hpp
/usr/include/GeographicLib/MagneticModel.hpp
/usr/include/GeographicLib/Math.hpp
/usr/include/GeographicLib/NearestNeighbor.hpp
/usr/include/GeographicLib/NormalGravity.hpp
/usr/include/GeographicLib/OSGB.hpp
/usr/include/GeographicLib/PolarStereographic.hpp
/usr/include/GeographicLib/PolygonArea.hpp
/usr/include/GeographicLib/Rhumb.hpp
/usr/include/GeographicLib/SphericalEngine.hpp
/usr/include/GeographicLib/SphericalHarmonic.hpp
/usr/include/GeographicLib/SphericalHarmonic1.hpp
/usr/include/GeographicLib/SphericalHarmonic2.hpp
/usr/include/GeographicLib/TransverseMercator.hpp
/usr/include/GeographicLib/TransverseMercatorExact.hpp
/usr/include/GeographicLib/UTMUPS.hpp
/usr/include/GeographicLib/Utility.hpp
/usr/lib64/cmake/GeographicLib
/usr/lib64/cmake/GeographicLib/geographiclib-config-version.cmake
/usr/lib64/cmake/GeographicLib/geographiclib-config.cmake
/usr/lib64/cmake/GeographicLib/geographiclib-namespace-targets-release.cmake
/usr/lib64/cmake/GeographicLib/geographiclib-namespace-targets.cmake
/usr/lib64/cmake/GeographicLib/geographiclib-targets-release.cmake
/usr/lib64/cmake/GeographicLib/geographiclib-targets.cmake
/usr/lib64/libGeographic.so
/usr/lib64/pkgconfig/geographiclib.pc

References

Summary

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