=========================================
Customized Anaconda Installers (AER 2.31)
=========================================

.. raw:: html

    <p>Anaconda Repository can distribute copies of the Anaconda Distribution
    installers (version 4.1 and higher) and the Miniconda installers (version
    4.1.11 and higher) that are pre-configured to use your installation of Anaconda
    Repository.</p>
    <p>By default the installers will be stored in
    <code class="docutils literal"><span class="pre">$PREFIX/opt/anaconda-server/installers</span></code>. If you prefer to store the
    installers in a different location, configure a new path:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">config</span> <span class="o">--</span><span class="nb">set</span> <span class="n">INSTALLER_DIR</span> <span class="o">/</span><span class="n">preferred</span><span class="o">/</span><span class="n">directory</span>
    </pre></div>
    </div>
    <p>NOTE: Replace &#8220;/preferred/directory&#8221; with the path to the directory where you
    prefer to store the installers.</p>
    <p>To download the installers:</p>
    <div class="code bash highlight-default"><div class="highlight"><pre><span></span>mkdir -p /tmp/extras
    pushd /tmp/extras

    URL=&quot;http://repo.continuum.io&quot;

    version=&quot;4.4.0&quot;
    miniconda=&quot;Miniconda3-latest-Linux-x86_64.sh \
        Miniconda3-latest-MacOSX-x86_64.sh \
        Miniconda3-latest-Windows-x86.exe \
        Miniconda3-latest-Windows-x86_64.exe \
        Miniconda-latest-Linux-x86_64.sh \
        Miniconda-latest-MacOSX-x86_64.sh \
        Miniconda-latest-Windows-x86.exe \
        Miniconda-latest-Windows-x86_64.exe&quot;
    anaconda=&quot;Anaconda2-$version-Linux-x86_64.sh \
        Anaconda3-$version-Linux-x86_64.sh \
        Anaconda2-$version-MacOSX-x86_64.sh \
        Anaconda3-$version-MacOSX-x86_64.sh \
        Anaconda2-$version-MacOSX-x86_64.pkg \
        Anaconda3-$version-MacOSX-x86_64.pkg \
        Anaconda2-$version-Windows-x86_64.exe \
        Anaconda3-$version-Windows-x86_64.exe&quot;

    for installer in $miniconda; do
        curl -O $URL/miniconda/$installer
    done
    for installer in $anaconda; do
        curl -O $URL/archive/$installer
    done

    # Move the files into the installers directory
    popd
    cp -a /tmp/extras $PREFIX/opt/anaconda-server/installers
    </pre></div>
    </div>
    <p>The installers will be available for download from <code class="docutils literal"><span class="pre">http://your.anaconda.server:port/downloads</span></code>.</p>
    <p>NOTE: Replace &#8220;your.anaconda.server:port&#8221; with the name or IP address and port
    of your Anaconda server.</p>
    <p>The resulting download will be a zip file containing the Anaconda distribution
    and the configuration files specific to your server. These zip files will be
    cached in the server&#8217;s configured storage for quick retrieval.</p>
    <p>To pre-generate these installer bundles based on the downloaded installers, or
    to re-generate after downloading new installers, execute the command:</p>
    <div class="code bash highlight-default"><div class="highlight"><pre><span></span><span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">admin</span> <span class="n">update</span><span class="o">-</span><span class="n">installers</span>
    </pre></div>
    </div>
    <p>This command requires that the <code class="docutils literal"><span class="pre">SERVER_NAME</span></code> <a class="reference internal" href="reference.html#server-name"><span class="std std-ref">setting</span></a> be set in order to generate the
    correct URLs.</p>
    <p>By default, the included <code class="docutils literal"><span class="pre">conda</span></code> installation will point to the <code class="docutils literal"><span class="pre">anaconda</span></code> and <code class="docutils literal"><span class="pre">r-channel</span></code> accounts on
    your Anaconda Repository server, if those accounts exist. The channels included in this default configuration
    can be adjusted by setting the <code class="docutils literal"><span class="pre">DEFAULT_CHANNELS</span></code> <a class="reference internal" href="reference.html#default-channels"><span class="std std-ref">setting</span></a>, and running the
    <code class="docutils literal"><span class="pre">anaconda-server-admin</span> <span class="pre">update-installers</span></code> command.</p>
