How To Install erlang-ranch on Debian 9
Introduction
In this tutorial we learn how to install erlang-ranch
on Debian 9.
What is erlang-ranch
erlang-ranch is:
erlang-ranch aims to provide everything you need to accept TCP connections with a small code base and low latency while being easy to use directly as an application or to embed into your own.
There are three methods to install erlang-ranch
on Debian 9. 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-ranch 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-ranch
using apt-get
by running the following command:
sudo apt-get -y install erlang-ranch
Install erlang-ranch Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install erlang-ranch
using apt
by running the following command:
sudo apt -y install erlang-ranch
Install erlang-ranch 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-ranch
using aptitude
by running the following command:
sudo aptitude -y install erlang-ranch
How To Uninstall erlang-ranch on Debian 9
To uninstall only the erlang-ranch
package we can use the following command:
sudo apt-get remove erlang-ranch
Uninstall erlang-ranch And Its Dependencies
To uninstall erlang-ranch
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove erlang-ranch
Remove erlang-ranch Configurations and Data
To remove erlang-ranch
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge erlang-ranch
Remove erlang-ranch configuration, data, and all of its dependencies
We can use the following command to remove erlang-ranch
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge erlang-ranch
Dependencies
erlang-ranch have the following dependencies:
References
Summary
In this tutorial we learn how to install erlang-ranch
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.