title: How to install Composer using Composer?
body: <p><em>EDIT:</em> solved, I have to use "dev-master" instead of "master" or "dev".</p>
  
  <p>maybe this seems weird to you... but I'm trying to locally install composer using a global composer binary.</p>
  
  <p>I'm trying to write something like:</p>
  
  <pre><code>composer require composer/composer
  </code></pre>
  
  <p>But this doesn't work, it tells me that needs the version. Then I've tried the following variations:</p>
  
  <pre><code>composer require composer/composer=*
  composer require composer/composer=master
  composer require composer/composer=dev
  </code></pre>
  
  <p>And... nothing, I obtain the following error message:</p>
  
  <pre><code>Your requirements could not be resolved to an installable set of packages.
  
    Problem 1
      - The requested package composer/composer could not be found in any version, there may be a typo in the package name.
  
  Potential causes:
   - A typo in the package name
   - The package is not available in a stable-enough version according to your minimum-stability setting
     see &lt;https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion&gt; for more details.
  
  Read &lt;https://getcomposer.org/doc/articles/troubleshooting.md&gt; for further common problems.
  
  Installation failed, reverting ./composer.json to its original content.
  </code></pre>
  
  <p>Anyone has any idea if it's possible to do it in a "clean" way? (Allowing the following points):</p>
  
  <ul>
  <li>specifying a very concrete version</li>
  <li>registering it in the composer.json and composer.lock files</li>
  <li>placing the composer binary with other php binaries like behat ...</li>
  </ul>