How To Install dans-gdal-scripts on Debian 10

Learn how to install dans-gdal-scripts on Debian 10 with this tutorial. dans-gdal-scripts is GDAL contributed tools by Geographic Information Network of Alaska

Introduction

In this tutorial we learn how to install dans-gdal-scripts on Debian 10.

What is dans-gdal-scripts

dans-gdal-scripts is:

Dan Stahlke’s GDAL contributed tools are a collection of useful programs to perform common raster operations. The included tools are: gdal_contrast_stretch, gdal_dem2rgb, gdal_get_projected_bounds, gdal_landsat_pansharpi, gdal_list_corners, gdal_merge_simple, gdal_merge_vrt gdal_raw2geotiff, gdal_trace_outline, gdal_wkt_to_mask, gdal_make_ndv_mask.

There are three methods to install dans-gdal-scripts on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install dans-gdal-scripts Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install dans-gdal-scripts using apt-get by running the following command:

sudo apt-get -y install dans-gdal-scripts

Install dans-gdal-scripts Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install dans-gdal-scripts using apt by running the following command:

sudo apt -y install dans-gdal-scripts

Install dans-gdal-scripts 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 dans-gdal-scripts using aptitude by running the following command:

sudo aptitude -y install dans-gdal-scripts

How To Uninstall dans-gdal-scripts on Debian 10

To uninstall only the dans-gdal-scripts package we can use the following command:

sudo apt-get remove dans-gdal-scripts

Uninstall dans-gdal-scripts And Its Dependencies

To uninstall dans-gdal-scripts and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove dans-gdal-scripts

Remove dans-gdal-scripts Configurations and Data

To remove dans-gdal-scripts configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge dans-gdal-scripts

Remove dans-gdal-scripts configuration, data, and all of its dependencies

We can use the following command to remove dans-gdal-scripts configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge dans-gdal-scripts

Dependencies

dans-gdal-scripts have the following dependencies:

References

Summary

In this tutorial we learn how to install dans-gdal-scripts package on Debian 10 using different package management tools: apt, apt-get and aptitude.