title: ubuntu: upgrading software (cmake) - version disambiguation (local compile)
body: <p>I had cmake 2.8.0 installed on my machine (from ubuntu packages), the binary was placed in /usr/bin/cmake. I need to upgrade cmake version to at least 2.8.2. The ubuntu version is quite old, but I can't upgrade it right now, therefore I have to install it from sources. I've downloaded cmake 2.8.2, followed <a href="http://www.cmake.org/cmake/help/install.html" rel="nofollow">instructions</a>, and made <code>make install</code> with root privileges. Now I've got two parallel cmakes installed on my machine:</p>
  
  <ul>
  <li>/usr/bin/cmake - 2.8.0</li>
  <li>/usr/local/bin/cmake - 2.8.2</li>
  </ul>
  
  <pre>
  any_user@machine $ cmake --version
  2.8.0
  
  root@machine $ cmake --version
  2.8.2
  </pre>
  
  <p>What should I do to get rid of 2.8.0 (which is obsolete for me right now) or just to replace 2.8.0 with 2.8.2? I would like any non-user to type <code>cmake</code> (without specifying the path) to get newer version. Thanks in advance.</p>