In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "how to install the latest Erlang on Ubuntu Linux". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to install the latest Erlang on Ubuntu Linux.
Erlang is a functional programming language for building large-scale scalable real-time systems. Erlang was originally a proprietary software created by Ericsson and has since been open source.
Erlang is available in Ubuntu's Universe repository. After enabling the warehouse, you can easily install it using the following command:
Sudo apt install erlang
However, the version of Erlang provided by the Ubuntu repository may not be up to date.
If you want the latest Erlang version on Ubuntu, you can add the repository provided by Erlang Solutions. They provide precompiled binaries for various Linux distributions, Windows, and macOS.
If you previously installed a package called erlang, it will be upgraded to a newer version provided by the added repository.
Install the latest version of Erlang on Ubuntu
You need to download the key file at the Linux terminal. You can use the wget tool, so make sure you have it installed:
Sudo apt install wget
Next, use wget to download the GPG key for the Erlang Solution repository and add it to your apt packaging system. After adding the key, your system will trust the package 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 that will contain information about the repository and will be used by the APT package manager to get packages and future updates.
For Ubuntu 20.04 (and Ubuntu 20.10), use the following command:
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 Ubuntu 20.04 focal, but it also applies to Ubuntu 20.10 groovy.
For Ubuntu 18.04, use the following command:
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 of the packages for the newly added repository.
Sudo apt update
You will notice that it recommends that you make some upgrades. If you list the available upgrades, you will find the erlang package there. To update an existing version of erlang or reinstall, use this command:
Sudo apt install erlang
After it is installed, you can test it.
To exit Erlang shell, use Ctrl+g and type Q, and since I've never used Erlang before, I have to try some keystrokes and find out how to do it.
Delete erlang
To remove the program, use the following command:
Sudo apt remove erlang
There will also be some dependencies. You can delete them with the following command:
Sudo apt autoremove
You can also delete the added warehouse files if you like.
Sudo rm / etc/apt/sources.list.d/erlang-solution.list at this point, I believe you have a deeper understanding of "how to install the latest Erlang on Ubuntu Linux". You might as well do it in practice! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.