How To Install erlang-odbc on Debian 11

In this tutorial we learn how to install erlang-odbc on Debian 11. erlang-odbc is Erlang/OTP interface to SQL databases

Introduction

In this tutorial we learn how to install erlang-odbc on Debian 11.

What is erlang-odbc

erlang-odbc is:

The Erlang ODBC application provides an interface for accessing relational SQL databases from Erlang.

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

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

sudo apt-get update

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

sudo apt-get -y install erlang-odbc

Install erlang-odbc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install erlang-odbc

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

sudo aptitude -y install erlang-odbc

How To Uninstall erlang-odbc on Debian 11

To uninstall only the erlang-odbc package we can use the following command:

sudo apt-get remove erlang-odbc

Uninstall erlang-odbc And Its Dependencies

To uninstall erlang-odbc and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove erlang-odbc

Remove erlang-odbc Configurations and Data

To remove erlang-odbc configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge erlang-odbc

Remove erlang-odbc configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge erlang-odbc

Dependencies

erlang-odbc have the following dependencies:

References

Summary

In this tutorial we learn how to install erlang-odbc package on Debian 11 using different package management tools: apt, apt-get and aptitude.