title: Is there an Erlang command to read BEAM files from a remote repository?
body: <p>I need to distribute some Erlang code which is closed source to a client. I think the easiest way would be to simply give an Erlang shell command to pull the code from a remote host. The remote host will be an Erlang VM which does not shared the same secret cookie as the client. How can I do this?</p>
  
  <p>For example, if I am in the Erlang shell, I would like something thats lets me do:</p>
  
  <pre><code>load_lib(mysql).
  load_lib(postgres).
  </code></pre>
  
  <p>: and then Erlang would download and install the BEAM files, and would allow me to use the mysql: and postgres: Erlang modules from that point on</p>
  
  <p>Update:
  1)
   I have been suggested to use tarballs, so I guess the procedure in this case would be something like:</p>
  
  <pre><code>Find Erlang lib directory and CD to it
  wget tarball to the current directory
  </code></pre>
  
  <p>Not as nice as gem install, but its the best that Erlang can do</p>