How To Install GMT on Fedora 34

GMT is Generic Mapping Tools Generic Mapping Tools

Introduction

In this tutorial we learn how to install GMT on Fedora 34.

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 GMT 6.1.1 3.fc34 x86_64 2.3 M GMT-6.1.1-3.fc34.src.rpm fedora Generic Mapping Tools https LGPLv3+ 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install GMT.

Install GMT on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install GMT

Install GMT on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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 Fedora 34

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

sudo dnf remove GMT

GMT Package Contents on Fedora 34

/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/32
/usr/lib/.build-id/32/d35d89e541036865cdd4d7fed82feb90dc608d
/usr/lib/.build-id/73
/usr/lib/.build-id/73/a080d2cb04b9ee58997455ca1a70323b087ff0
/usr/lib/.build-id/78
/usr/lib/.build-id/78/4398c190aa622059a582884e58780a14ac884f
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/5cfac67d61d903cb8a3c48bb7d04da1dc3db56
/usr/lib64/gmt
/usr/lib64/gmt/plugins
/usr/lib64/gmt/plugins/supplements.so
/usr/lib64/libgmt.so.6
/usr/lib64/libgmt.so.6.1.1
/usr/lib64/libpostscriptlight.so.6
/usr/lib64/libpostscriptlight.so.6.1.1
/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
/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/58
/usr/lib/.build-id/58/963ddb6a0f94679ecbed972c60a3c73eff180d
/usr/lib/.build-id/73
/usr/lib/.build-id/73/35a9162a571f44221142a9a25ac6c5abf7fced
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/541d90faefc3c03017c66f2310d8b7d50f64d1
/usr/lib/.build-id/c7
/usr/lib/.build-id/c7/75306f5708075946dd29a9476efbb4fbda4f21
/usr/lib/gmt
/usr/lib/gmt/plugins
/usr/lib/gmt/plugins/supplements.so
/usr/lib/libgmt.so.6
/usr/lib/libgmt.so.6.1.1
/usr/lib/libpostscriptlight.so.6
/usr/lib/libpostscriptlight.so.6.1.1
/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 Fedora 34 using yum and dnf.