How To Install libepr-api2 on Ubuntu 18.04

In this tutorial we learn how to install libepr-api2 on Ubuntu 18.04. libepr-api2 is ENVISAT Product Reader API for C

Introduction

In this tutorial we learn how to install libepr-api2 on Ubuntu 18.04.

What is libepr-api2

libepr-api2 is:

The ENVISAT Product Reader API is a set of C-source code files supporting developers who want to use MERIS, AATSR, and ASAR data products of the ESA ENVISAT satellite in their software.

The main use case for the C API is the ingestion of ENVISAT data into

  • new scientific algorithms developed for the MERIS, AATSR or ASAR sensors or even all of them,
  • existing scientific software packages written in C or C++, or COTS software systems which allow for extension using a C or C++ interface.

There are three methods to install libepr-api2 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 libepr-api2 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libepr-api2

Install libepr-api2 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libepr-api2

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

sudo aptitude -y install libepr-api2

How To Uninstall libepr-api2 on Ubuntu 18.04

To uninstall only the libepr-api2 package we can use the following command:

sudo apt-get remove libepr-api2

Uninstall libepr-api2 And Its Dependencies

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

sudo apt-get -y autoremove libepr-api2

Remove libepr-api2 Configurations and Data

To remove libepr-api2 configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libepr-api2

Remove libepr-api2 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libepr-api2

References

Summary

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