How To Install gmt-gshhg on Debian 11
Introduction
In this tutorial we learn how to install gmt-gshhg
on Debian 11.
What is gmt-gshhg
gmt-gshhg is:
GSHHG is a high-resolution shoreline data set amalgamated from two databases: Global Self-consistent Hierarchical High-resolution Shorelines (GSHHS) and CIA World Data Bank II (WDBII). GSHHG contains vector descriptions at five different resolutions of land outlines, lakes, rivers, and political boundaries. This data is for use by GMT, the Generic Mapping Tools.
This metapackage depends on all resolution specific GSHHG packages:
- gmt-gshhg-low Low resolution coastlines for the Generic Mapping Tools
- gmt-gshhg-high High resolution coastlines for the Generic Mapping Tools
- gmt-gshhg-full Full resolution coastlines for the Generic Mapping Tools
Use gmt-gshhg-low for the crude, low and intermediate resolution coastlines which will be enough to get you started.
Use gmt-gshhg-high or gmt-gshhg-full to create better quality maps at an higher resolution, but be aware that the full maps take space on your disk.
There are three methods to install gmt-gshhg
on Debian 11. 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-gshhg 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-gshhg
using apt-get
by running the following command:
sudo apt-get -y install gmt-gshhg
Install gmt-gshhg Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install gmt-gshhg
using apt
by running the following command:
sudo apt -y install gmt-gshhg
Install gmt-gshhg 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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install gmt-gshhg
using aptitude
by running the following command:
sudo aptitude -y install gmt-gshhg
How To Uninstall gmt-gshhg on Debian 11
To uninstall only the gmt-gshhg
package we can use the following command:
sudo apt-get remove gmt-gshhg
Uninstall gmt-gshhg And Its Dependencies
To uninstall gmt-gshhg
and its dependencies that are no longer needed by Debian 11, we can use the command below:
sudo apt-get -y autoremove gmt-gshhg
Remove gmt-gshhg Configurations and Data
To remove gmt-gshhg
configuration and data from Debian 11 we can use the following command:
sudo apt-get -y purge gmt-gshhg
Remove gmt-gshhg configuration, data, and all of its dependencies
We can use the following command to remove gmt-gshhg
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge gmt-gshhg
Dependencies
gmt-gshhg have the following dependencies:
References
Summary
In this tutorial we learn how to install gmt-gshhg
package on Debian 11 using different package management tools: apt
, apt-get
and aptitude
.