How To Install libsaga on Ubuntu 18.04

In this tutorial we learn how to install libsaga on Ubuntu 18.04. libsaga is SAGA GIS shared libraries - transitional package

Introduction

In this tutorial we learn how to install libsaga on Ubuntu 18.04.

What is libsaga

libsaga is:

SAGA GIS (System for Automated Geoscientific Analyses) is a geographic information system used for editing and analysing spatial data.

This package is a transitional package from libsaga to libsaga-api-2.3.1 and libsaga-gdi-2.3.1. It can safely be removed.

There are three methods to install libsaga on Ubuntu 18.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 libsaga Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libsaga

Install libsaga Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libsaga using apt by running the following command:

sudo apt -y install libsaga

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

sudo aptitude -y install libsaga

How To Uninstall libsaga on Ubuntu 18.04

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

sudo apt-get remove libsaga

Uninstall libsaga And Its Dependencies

To uninstall libsaga and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libsaga

Remove libsaga Configurations and Data

To remove libsaga configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libsaga

Remove libsaga configuration, data, and all of its dependencies

We can use the following command to remove libsaga configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libsaga

References

Summary

In this tutorial we learn how to install libsaga package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.