How To Install GMT on Rocky Linux 8

In this tutorial we learn how to install GMT on Rocky Linux 8. GMT is Generic Mapping Tools

Introduction

In this tutorial we learn how to install GMT on Rocky Linux 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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install GMT.

Install GMT on Rocky Linux 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 Rocky Linux 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 Rocky Linux 8

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

sudo dnf remove GMT

GMT Package Contents on Rocky Linux 8

/usr/bin/gmt
/usr/bin/gmt-config
/usr/bin/gmt_shell_functions.sh
/usr/bin/gmtswitch
/usr/bin/isogmt
/usr/lib/.build-id
/usr/lib/.build-id/29
/usr/lib/.build-id/29/96a01b8049a44531ca4ac7cc35cca148f087c9
/usr/lib/.build-id/96
/usr/lib/.build-id/96/22800f8e31d2e1be34fe4fbc1c416516c4fe80
/usr/lib/.build-id/ab
/usr/lib/.build-id/ab/e7556532cd6d3b31ebf96c2b9253b1001a66a1
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/dc0c484133509d0961474939c6c238e06245cf
/usr/lib64/gmt
/usr/lib64/gmt/plugins
/usr/lib64/gmt/plugins/supplements.so
/usr/lib64/libgmt.so.6
/usr/lib64/libgmt.so.6.1.0
/usr/lib64/libpostscriptlight.so.6
/usr/lib64/libpostscriptlight.so.6.1.0
/usr/share/doc/GMT
/usr/share/doc/GMT/AUTHORS.md
/usr/share/doc/GMT/CITATION.md
/usr/share/doc/GMT/CONTRIBUTING.md
/usr/share/doc/GMT/README.md
/usr/share/licenses/GMT
/usr/share/licenses/GMT/COPYING.LESSERv3
/usr/share/licenses/GMT/COPYINGv3
/usr/share/licenses/GMT/LICENSE.TXT

References

Summary

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