How To Install GMT on CentOS 7

In this tutorial we learn how to install GMT on CentOS 7. GMT is Generic Mapping Tools

Introduction

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

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 packages have been removed. These functions can still be accessed via the GMT wrapper script with

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

Install GMT on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install GMT

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

sudo dnf -y install GMT

How To Uninstall GMT on CentOS 7

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