How To Install rebar3 on Debian 12
Introduction
In this tutorial we learn how to install rebar3
on Debian 12.
What is rebar3
rebar3 is:
Rebar3 is an Erlang tool that makes it easy to create, develop, and release Erlang libraries, applications, and systems in a repeatable manner. Rebar3 will:
- respect and enforce standard Erlang/OTP conventions for project structure so they are easily reusable by the community;
- manage source dependencies and Erlang packages while ensuring repeatable builds;
- handle build artifacts, paths, and libraries such that standard development tools can be used without a headache;
- adapt to projects of all sizes on almost any platform;
- treat documentation as a feature, and errors or lack of documentation as a bug.
There are three methods to install rebar3
on Debian 12. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install rebar3 Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install rebar3
using apt-get
by running the following command:
sudo apt-get -y install rebar3
Install rebar3 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install rebar3
using apt
by running the following command:
sudo apt -y install rebar3
Install rebar3 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 rebar3
using aptitude
by running the following command:
sudo aptitude -y install rebar3
How To Uninstall rebar3 on Debian 12
To uninstall only the rebar3
package we can use the following command:
sudo apt-get remove rebar3
Uninstall rebar3 And Its Dependencies
To uninstall rebar3
and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove rebar3
Remove rebar3 Configurations and Data
To remove rebar3
configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge rebar3
Remove rebar3 configuration, data, and all of its dependencies
We can use the following command to remove rebar3
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge rebar3
Dependencies
rebar3 have the following dependencies:
References
Summary
In this tutorial we learn how to install rebar3
package on Debian 12 using different package management tools: apt
, apt-get
and aptitude
.