Search code examples
ubuntuerlangrebar

How to install a specific version of rebar?


I'm trying to install rebar 2.6.4 using apt-get. When I run

sudo apt-get install rebar
rebar -V

It shows version

rebar 2.0.0 R16B01 20131022_120229 No VCS info available.

Is there a way to install version 2.6.4 using apt-get?


Solution

  • Got it to work.

    I cloned rebar from github.com/rebar/rebar, checkedout branch 2.6.4, built the rebar, and coppied the resulting rebar script into /usr/bin directory. Now my rebar works fine and rebar -V displays

    rebar 2.6.4 R16B03 20161121_162253 git 2.6.4