![Hostnbit](https://tutorialspoint.co.uk/wp-content/uploads/2023/10/hostnbit-ad.gif)
Introduction
In this tutorial we learn how to install gmt-common
on Ubuntu 20.04.
What is gmt-common
gmt-common is:
GMT is a collection of tools that allow users to manipulate
(x,y) and (x,y,z) data sets (including filtering, trend fitting, gridding,
projecting, etc.) and produce Encapsulated PostScript File (EPS) illustrations
ranging from simple x-y plots through contour maps to artificially illuminated
surfaces and 3-D perspective views in black and white, gray tone, hachure
patterns, and 24-bit color.
GMT supports many common map projections plus linear, log, and power scaling,
and comes with support data such as coastlines, rivers, and political
boundaries.
This package contains the architecture-independent files for GMT.
There are three methods to install gmt-common
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install gmt-common Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install gmt-common
using apt-get
by running the following command:
sudo apt-get -y install gmt-common
Install gmt-common Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install gmt-common
using apt
by running the following command:
sudo apt -y install gmt-common
Install gmt-common Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install gmt-common
using aptitude
by running the following command:
sudo aptitude -y install gmt-common
How To Uninstall gmt-common on Ubuntu 20.04
To uninstall only the gmt-common
package we can use the following command:
sudo apt-get remove gmt-common
Uninstall gmt-common And Its Dependencies
To uninstall gmt-common
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove gmt-common
Remove gmt-common Configurations and Data
To remove gmt-common
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge gmt-common
Remove gmt-common configuration, data, and all of its dependencies
We can use the following command to remove gmt-common
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge gmt-common
References
Summary
In this tutorial we learn how to install gmt-common
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.
![Hostnbit](https://tutorialspoint.co.uk/wp-content/uploads/2023/09/hosting-banner-hp-1-jpg.webp)