title: How to reconfigure version of scala on ubuntu?
body: <p>I installed scala with <code>apt-get install scala</code>. ans figure out another trouble where exactly scala home is now?</p>
  
  <p>this <a href="https://stackoverflow.com/questions/15773293/where-is-scala-home-on-ubuntu">Where is SCALA_HOME on Ubuntu?</a> question suggest:</p>
  
  <blockquote>
    <p><code>/usr/share/java</code> </p>
  </blockquote>
  
  <p>I want to be sure and downloaded and untarred last scala version.</p>
  
  <p>all this I put at <code>/opt/scala</code> and added to system environment.</p>
  
  <p>But now I have default installed version of scala. I don't know how to set version to new location?</p>
  
  <p>Here is how it looks:</p>
  
  <pre><code>nazar@nazar-desktop:~$ scala -version
  Scala code runner version 2.9.2 -- Copyright 2002-2011, LAMP/EPFL
  nazar@nazar-desktop:~$ echo $SCALA_HOME
  /opt/scala/scala-2.10.3
  </code></pre>
  
  <p>I want to turn installed version from 2.9.2 to untarred one.</p>
  
  <ul>
  <li><strong><em>how to solve this trouble?</em></strong></li>
  </ul>