Configuring conda to use your local on-site AEN repository (AEN 4.1.3)
======================================================================

.. raw:: html

    <p>You can configure AEN to use a local on-site Anaconda Repository server instead
    of Anaconda.org.</p>
    <p>To configure AEN to use a local on-site Repository, you must:</p>
    <ol class="arabic simple">
    <li><a class="reference internal" href="#edit-condarc-cn"><span class="std std-ref">Edit condarc on the compute node</span></a>.</li>
    <li><a class="reference internal" href="#config-anaconda-client"><span class="std std-ref">Configure the Anaconda client</span></a>.</li>
    </ol>
    <div class="section" id="editing-condarc-on-the-compute-node">
    <span id="edit-condarc-cn"></span><h2>Editing condarc on the compute node<a class="headerlink" href="#editing-condarc-on-the-compute-node" title="Permalink to this headline">¶</a></h2>
    <p>NOTE: If there are channels that you haven&#8217;t mirrored, you must
    remove them from the configuration.</p>
    <p>Edit the file <code class="docutils literal"><span class="pre">.condarc</span></code> to match the following:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="c1">#/opt/wakari/anaconda/.condarc</span>
    <span class="n">channels</span><span class="p">:</span>
        <span class="o">-</span> <span class="n">defaults</span>

    <span class="n">create_default_packages</span><span class="p">:</span>
        <span class="o">-</span> <span class="n">anaconda</span><span class="o">-</span><span class="n">client</span>
        <span class="o">-</span> <span class="n">ipykernel</span>

    <span class="c1"># Default channels is needed for when users override the system .condarc</span>
    <span class="c1"># with ~/.condarc.  This ensures that &quot;defaults&quot; maps to your Anaconda Repository and not</span>
    <span class="c1"># repo.continuum.io</span>
    <span class="n">default_channels</span><span class="p">:</span>
        <span class="o">-</span> <span class="n">http</span><span class="p">:</span><span class="o">//&lt;</span><span class="n">your</span> <span class="n">Anaconda</span> <span class="n">Repository</span> <span class="n">name</span><span class="o">&gt;</span><span class="p">:</span><span class="mi">8080</span><span class="o">/</span><span class="n">conda</span><span class="o">/</span><span class="n">anaconda</span>
        <span class="o">-</span> <span class="n">http</span><span class="p">:</span><span class="o">//&lt;</span><span class="n">your</span> <span class="n">Anaconda</span> <span class="n">Repository</span> <span class="n">name</span><span class="o">&gt;</span><span class="p">:</span><span class="mi">8080</span><span class="o">/</span><span class="n">conda</span><span class="o">/</span><span class="n">wakari</span>
        <span class="o">-</span> <span class="n">http</span><span class="p">:</span><span class="o">//&lt;</span><span class="n">your</span> <span class="n">Anaconda</span> <span class="n">Repository</span> <span class="n">name</span><span class="o">&gt;</span><span class="p">:</span><span class="mi">8080</span><span class="o">/</span><span class="n">conda</span><span class="o">/</span><span class="n">r</span><span class="o">-</span><span class="n">channel</span>

    <span class="c1"># Note:  You must add the &quot;conda&quot; subdirectory to the end</span>
    <span class="n">channel_alias</span><span class="p">:</span> <span class="n">http</span><span class="p">:</span><span class="o">//&lt;</span><span class="n">your</span> <span class="n">Anaconda</span> <span class="n">Repository</span> <span class="n">name</span><span class="p">:</span><span class="mi">8080</span><span class="o">/</span><span class="n">conda</span>
    </pre></div>
    </div>
    <p>NOTE: Replace <code class="docutils literal"><span class="pre">&lt;your</span> <span class="pre">Anaconda</span> <span class="pre">Repository</span> <span class="pre">name&gt;</span></code> with the actual name or IP
    address of your local Anaconda Repository installation.</p>
    </div>
    <div class="section" id="configuring-the-anaconda-client">
    <span id="config-anaconda-client"></span><h2>Configuring the Anaconda client<a class="headerlink" href="#configuring-the-anaconda-client" title="Permalink to this headline">¶</a></h2>
    <p>Anaconda client lets users work with Repository from the
    command-line&#8212;including searching for packages, logging in, uploading packages,
    and more.</p>
    <p>To set the default configuration of anaconda-client for all users on your
    compute node:</p>
    <div class="highlight-bash"><div class="highlight"><pre><span></span>sudo /opt/wakari/anaconda/bin/anaconda config --set url http://&lt;your Anaconda Repository&gt;:8080/api -s
    </pre></div>
    </div>
    <p>NOTE: Sudo is required because the configuration file is written to the root
    file system: <code class="docutils literal"><span class="pre">/etc/xdg/binstar/config.yaml</span></code>.</p>
    <p>NOTE: Replace <code class="docutils literal"><span class="pre">&lt;your</span> <span class="pre">Anaconda</span> <span class="pre">Repository&gt;</span></code> with the actual name or IP
    address of your local Anaconda Repository installation.</p>
    </div>
    <div class="section" id="what-s-next">
    <h2>What&#8217;s next<a class="headerlink" href="#what-s-next" title="Permalink to this headline">¶</a></h2>
    <p>Review the <a class="reference internal" href="config/index.html"><span class="doc">optional configuration</span></a> tasks to see if any apply to your system.</p>
    </div>
