Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to uninstall or upgrade Erlang/OTP?

Tags:

erlang

How can I uninstall Erlang/OTP which I use make install to build from source earlier. The install is pretty simple by using ./configure;make;make install;

The reason to uninstall is that I want to upgrade from Erlang R15B01 to Erlang R15B03.

Now I have:

# erl --version
Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:2:2] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.9.1  (abort with ^G)
1>
like image 952
Hao Avatar asked Mar 14 '14 04:03

Hao


People also ask

Can I uninstall Erlang OTP?

Method 2: Uninstall Erlang OTP via Apps and Features/Programs and Features. Look for Erlang OTP in the list and click on it. The next step is to click on uninstall, so you can initiate the uninstallation.

How do I completely remove Erlang from Ubuntu?

If you installed erlang from source using the default home directory, you would need to rm -rf /usr/local/erlang/ . Additional cleanup might me required if you had manually copied libraries or executable to other folders, like */lib or */bin.

How do I install latest Erlang?

Installing the latest version of Erlang on Ubuntu 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. Now, you should add a file for Erlang in your APT sources. list.


3 Answers

How to uninstall Erlang on Ubuntu:

sudo apt-get purge erlang*

Uninstall Erlang on Fedora:

sudo yum remove erlang*

If you installed erlang from source using the default home directory, you would need to rm -rf /usr/local/erlang/.

Additional cleanup might me required if you had manually copied libraries or executable to other folders, like */lib or */bin.

like image 158
Eric Leschinski Avatar answered Sep 20 '22 09:09

Eric Leschinski


There is an option --prefix=path of script configure, where path is a path to directory where you want to install an application. For instance:

./configure --prefix=/opt/erlang-R15B01

Do not forget to add appropriate path to PATH environment variable.

If you didn't use this option during previous installation then the default path was used (/usr or /usr/local) and you can just install new version above old one the same way -

./configure && make && make install.
like image 31
Danil Onishchenko Avatar answered Sep 18 '22 09:09

Danil Onishchenko


If you using Erlang for development I would suggest looking into kerl VM manager. It allows you to have multiple VM "installed" with different configuration options and possibility of switching between them.

like image 44
mpm Avatar answered Sep 19 '22 09:09

mpm