How To Install GMT on AlmaLinux 8

In this tutorial we learn how to install GMT in AlmaLinux 8. GMT is Generic Mapping Tools

Introduction

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

What is GMT

GMT is an open source collection of ~60 tools for manipulating geographic and Cartesian data sets (including filtering, trend fitting, gridding, projecting, etc.) and producing Encapsulated PostScript File (EPS) illustrations ranging from simple x-y plots via contour maps to artificially illuminated surfaces and 3-D perspective views. GMT supports ~30 map projections and transforma- tions and comes with support data such as coastlines, rivers, and political boundaries. GMT is developed and maintained by Paul Wessel and Walter H. F. Smith with help from a global set of volunteers, and is supported by the National Science Foundation. NOTE removed. These functions can still be accessed via the GMT wrapper script with

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

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

sudo dnf -y install GMT

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

sudo yum -y install GMT

How To Uninstall GMT on AlmaLinux 8

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

sudo dnf remove GMT

References

Summary

In this tutorial we learn how to install GMT on AlmaLinux 8 using yum and dnf.