• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer
WebSetNet

WebSetNet

Technology News

  • Technology News
    • Mobile
    • Games
  • Internet Marketing
  • System Admin
    • Windows
    • Linux
    • Mac & Apple
    • Website Scripts
      • Wordpress

How to Install the Latest Erlang on Ubuntu Linux

March 25, 2021 by bartez64

Erlang is a functional programming language for building massive scalable real-time systems. Originally created by Ericsson as a proprietary software, Erlang was later open sourced.

Erlang is available in the Universe repository of Ubuntu. With that repository enabled, you can easily install it using the following command:

sudo apt install erlang
Install Erlang Ubuntu

However, the Erlang version offered by Ubuntu repositories may not be the latest one.

If you want the latest Erlang version on Ubuntu, you can add the repository offered by Erlang Solutions. They provide prebuilt binaries for various Linux distributions, Windows and macOS.

If you had installed a package named erlang previously, it will be upgraded to the newer version offered by the added repository.

Installing the latest version of Erlang on Ubuntu

You’ll need to download the key file in Linux terminal. You can use wget tool for that so make sure that you have it installed:

sudo apt install wget

Next, use wget to download the GPG key of the Erlang Solution repository and add it your apt packaging system. With the key added, your system will trust the packages coming from the repository.

wget -O- https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | sudo apt-key add -

Now, you should add a file for Erlang in your APT sources.list.d directory. This file will contain the information about the repository and the APT package manager will use it for getting the packages and any future updates to it.

For Ubuntu 20.04 (and Ubuntu 20.10) use the following:

echo "deb https://packages.erlang-solutions.com/ubuntu focal contrib" | sudo tee /etc/apt/sources.list.d/erlang-solution.list

I know that the above command mentions focal (for Ubuntu 20.04) but it also works for Ubuntu 20.10 groovy.

For Ubuntu 18.04, use the following:

echo "deb https://packages.erlang-solutions.com/ubuntu bionic contrib" | sudo tee /etc/apt/sources.list.d/erlang-solution.list

You must update the local package cache to inform it about the packages from the newly added repository:

sudo apt update

You’ll notice that it suggests several upgrades. If you list the available upgrades, you’ll find erlang packages there. To update the existing erlang version or install it afresh, use this command:

sudo apt install erlang

Once installed, you can test it out.

erlang shell

To quit the Erlang shell, use Ctrl+g and then enter q. I had to do a hit and try to figure that out because I had never used Erlang before.

Removing erlang

To remove the program, use the following command:

sudo apt remove erlang

There will be a few dependencies left. You can remove them with the following command:

sudo apt autoremove

If you want, you may also remove the added repository file:

sudo rm /etc/apt/sources.list.d/erlang-solution.list

That’s about it. Enjoy learning and coding with Erlang on Ubuntu Linux.

Original Article

Related posts:

  1. List of PPA Repositories for Ubuntu 17.04 Zesty Zapus
  2. Using PPA in Ubuntu Linux [Complete Guide]
  3. Monitoring: How To Install Sensu on Ubuntu 16.04 Server
  4. Ubuntu 17.04 "Zesty Zapus" All Flavors Download Links
  5. Installing Packages From External Repositories in Ubuntu [Explained]
  6. Download Icons For Ubuntu – 10 Best Icons Themes For Ubuntu
  7. Best Ubuntu Themes: 10 Linux Icon Themes 2019
  8. Things to do After Installing Ubuntu 18.04
  9. How to Install RabbitMQ Server on CentOS 7
  10. How to List Installed Packages on Ubuntu and Debian [Quick Tip]

Filed Under: Linux

Primary Sidebar

Trending

  • How to fix Windows Update Error 80244019
  • Windows 10 Update keeps failing with error 0x8007001f – 0x20006
  • How To Change Netflix Download Location In Windows 10
  • Troubleshoot Outlook “Not implemented” Unable to Send Email Error
  • How do I enable or disable Alt Gr key on Windows 10 keyboard
  • How To Install Android App APK on Samsung Tizen OS Device
  • 3 Ways To Open PST File Without Office Outlook In Windows 10
  • FIX: Windows Update error 0x800f0986
  • How to Retrieve Deleted Messages on Snapchat
  • Latest Samsung Galaxy Note 20 leak is a spec dump revealing key features
  • Install Android 7.0 Nougat ROM on Galaxy Core 2 SM-G355H
  • 192.168.1.1 Login, Admin Page, Username, Password | Wireless Router Settings
  • Websites to Watch Movies Online – 10+ Best Websites Without SignUp/Downloading
  • How to Backup SMS Messages on Your Android Smartphone
  • How to delete a blank page at the end of a Microsoft Word document
  • Fix: The Disc Image File Is Corrupted Error In Windows 10
  • Android 11 Custom ROM List – Unofficially Update Your Android Phone!
  • Samsung Galaxy Z Fold 3 could be scheduled for June 2021, with S Pen support

Footer

Tags

Amazon amazon prime amazon prime video Apple Application software epic games Galaxy Note 20 Galaxy S22 Plus Galaxy S22 Ultra Google Sheets headphones Huawei icloud Instagram instant gaming ip address iPhone iphone 12 iphone 13 iphone 13 pro max macOS Microsoft Microsoft Edge Mobile app office 365 outlook Pixel 6 Samsung Galaxy Samsung Galaxy Book 2 Pro 360 Samsung Galaxy Tab S8 Smartphone speedtest speed test teams tiktok Twitter vpn WhatsApp whatsapp web Windows 10 Windows 11 Changes Windows 11 Release Windows 11 Update Windows Subsystem For Android Windows 11 Xiaomi

Archives

  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org