{"id":9202,"date":"2022-02-25T19:43:17","date_gmt":"2022-02-25T19:43:17","guid":{"rendered":"http:\/\/putridparrot.com\/blog\/?p=9202"},"modified":"2022-02-25T19:43:17","modified_gmt":"2022-02-25T19:43:17","slug":"installing-erlang-on-ubuntu-20-x","status":"publish","type":"post","link":"https:\/\/putridparrot.com\/blog\/installing-erlang-on-ubuntu-20-x\/","title":{"rendered":"Installing Erlang on Ubuntu 20.x"},"content":{"rendered":"<p>The steps below are taken from the sites listed in the reference, recreating here for my reference.<\/p>\n<p><strong>Installing<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nsudo apt update\r\nsudo apt install software-properties-common apt-transport-https\r\nwget -O- https:\/\/packages.erlang-solutions.com\/ubuntu\/erlang_solutions.asc | sudo apt-key add -\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\necho &quot;deb https:\/\/packages.erlang-solutions.com\/ubuntu focal contrib&quot; | sudo tee \/etc\/apt\/sources.list.d\/erlang.list\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nsudo apt update\r\nsudo apt install erlang\r\n<\/pre>\n<p><strong>Checking it all worked<\/strong><\/p>\n<p>Let&#8217;s check if everything worked. You can just run <\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nerl\r\n<\/pre>\n<p>from your terminal OR let&#8217;s write the good ol&#8217; <em>hello world<\/em> by create helloworld.erl and add the following code<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\n-module(helloworld). \r\n-export(&#x5B;start\/0]). \r\nstart() -&gt; io:fwrite(&quot;Hello World\\n&quot;).\r\n<\/pre>\n<p>Run this using<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nerlc helloworld.erl\r\n\/\/ then\r\nerl -noshell -s helloworld start -s init stop\r\n<\/pre>\n<p>If all went well you&#8217;ll see <em>Hello World<\/em> written to standard io.<\/p>\n<p>To add the last bit of the <em>How to Install Erlang in Ubuntu<\/em> post, to remove Erlang run<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nsudo apt remove erlang\r\nsudo apt autoremove\r\n<\/pre>\n<p><strong>References<\/strong><\/p>\n<p><a href=\"https:\/\/computingforgeeks.com\/how-to-install-latest-erlang-on-ubuntu-linux\/\" rel=\"noopener\" target=\"_blank\">How To Install Erlang on Ubuntu 22.04|20.04|18.04<\/a><br \/>\n<a href=\"https:\/\/fedingo.com\/how-to-install-erlang-in-ubuntu\/\" rel=\"noopener\" target=\"_blank\">How to Install Erlang in Ubuntu<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The steps below are taken from the sites listed in the reference, recreating here for my reference. Installing sudo apt update sudo apt install software-properties-common apt-transport-https wget -O- https:\/\/packages.erlang-solutions.com\/ubuntu\/erlang_solutions.asc | sudo apt-key add &#8211; echo &quot;deb https:\/\/packages.erlang-solutions.com\/ubuntu focal contrib&quot; | sudo tee \/etc\/apt\/sources.list.d\/erlang.list sudo apt update sudo apt install erlang Checking it all worked Let&#8217;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[325,312],"tags":[],"class_list":["post-9202","post","type-post","status-publish","format-standard","hentry","category-erlang","category-ubuntu-2"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/9202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/comments?post=9202"}],"version-history":[{"count":5,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/9202\/revisions"}],"predecessor-version":[{"id":9207,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/9202\/revisions\/9207"}],"wp:attachment":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/media?parent=9202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/categories?post=9202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/tags?post=9202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}