Install Erlang and check the version

Contents
Install on Linux
erl -version
Start the shell
Keep Erlang updated

Install on Linux

Open a terminal on Linux and install the erlang package with the system package manager. On Debian and Ubuntu the APT manager carries a recent OTP build that is good enough for this course.

After the install finishes, move on to the version check below.

sudo apt update

sudo apt install erlang

erl -version

A fresh install should answer with its version line. The emulator version follows the OTP release number.

erl -version

Erlang (SMP,ASYNC_THREADS,HIPE) (BEAM) emulator version 15.2

Elixir 1.18.2 (compiled with Erlang/OTP 27)

If the command is not found, close the terminal, open a new one, and try again.

Start the shell

The interactive shell is called erl, and it starts a local node with a prompt numbered from one. Type an expression, end it with a period, and the shell answers with the value.

The shell also shows the OTP release and the erts version on startup.

erl

Erlang/OTP 27 [erts-15.2] [64-bit] [smp:8:8] [ds:8:8:10]

Eshell V15.2 (abort with ^G)

1>

If you see a number like 27, the Erlang side works and you are ready for the next lesson.

Keep Erlang updated

To upgrade later, refresh the package lists and upgrade the erlang package. Then check the version once more to confirm the new build.

If you see a number like 27, the Erlang side works and you are ready for the next lesson.

sudo apt update

sudo apt install --only-upgrade erlang

erl -version

Next: erl: the interactive shell

Article author: Arthur Isaev

Related articles
Erlang
Erlang course: zero to hero in 50 lessons
What is Erlang and where it runs
Install Erlang and check the version
erl: the interactive shell
Your first Erlang script
Variables and single assignment
Numbers
Atoms
Strings and binaries
Truthiness: only false and nil
Conditions: case and if
Recursion replaces loops
Lists
Tuples
Maps
Functions and clauses
Pattern matching
Guards
Records
Exceptions: try and catch
Modules, exports and imports
Funs: anonymous functions
Higher-order functions
Keyword lists
Erlang idioms and clean code
Rebar3 builds
Testing with EUnit
Debugging
Encodings and Unicode
Time and date
JSON and term formats
Processes and message passing
Spawn and links
Monitors and exits
GenServer
Supervisors
OTP applications
Files and IO
Sockets
HTTP clients
io:format and output
Let it crash: error handling
ETS tables
Timers and timeouts
Code loading
Distributed Erlang
Capstone: todo CLI
Capstone: TCP server
Performance
Modern Erlang tour
Hero roadmap: the whole course on one page
Install Erlang on Windows 11
Install Erlang on Ubuntu
Install Erlang on Rocky Linux
Install Erlang on macOS
Install Erlang on FreeBSD
Erlang in Docker
Banner image

Search this site

Channel @aofeed Chat @aofeedchat

Contacts and cooperation:
I recommend our hosting beget.com
Write to info@aredel.com if you:
1. Want to write an article for our site or translate an article into your native language.
2. Want to place thematically relevant ads on the site.
3. Ads on my site pass maximum censorship. If you see an ad block unsuitable for school-age children, shocking or misleading - please contact us by e-mail
4. Found a mistake, inaccuracy, bug, etc. on the site. ... .......
5. Articles can be shared on social media by clicking a network icon: