***********************************************
Update/Uninstall Anaconda Repository (AER 2.26)
***********************************************

.. raw:: html

    <p>Full support is included with your purchase of Anaconda Repository.
    If you have any questions during installation, please contact your sales representative
    or <a class="reference external" href="http://continuum.io/support">Priority Support team</a>.</p>
    <div class="section" id="update-anaconda-repository">
    <span id="repo-update"></span><h2>Update Anaconda Repository<a class="headerlink" href="#update-anaconda-repository" title="Permalink to this headline">¶</a></h2>
    <p>IMPORTANT: You MUST have a tested backup of your installation before starting the update process.</p>
    <p>Your support representative will provide you with a download URL for the updated Anaconda Repository
    installer.</p>
    <p>Administrators can update to the latest Anaconda Repository release via the following commands:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">curl</span> <span class="s1">&#39;$INSTALLER_URL&#39;</span> <span class="o">&gt;</span> <span class="n">anaconda_repository</span><span class="o">.</span><span class="n">sh</span>
    <span class="n">anaconda_repository</span><span class="o">.</span><span class="n">sh</span> <span class="o">-</span><span class="n">u</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">db</span><span class="o">-</span><span class="n">setup</span> <span class="o">--</span><span class="n">execute</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">install</span><span class="o">-</span><span class="n">supervisord</span><span class="o">-</span><span class="n">config</span><span class="o">.</span><span class="n">sh</span>
    <span class="n">supervisorctl</span> <span class="n">stop</span> <span class="nb">all</span>
    <span class="n">supervisorctl</span> <span class="n">reload</span>
    <span class="n">supervisorctl</span> <span class="n">start</span> <span class="nb">all</span>
    </pre></div>
    </div>
    <p>Please contact your Priority Support provider or sales person if you have any questions or
    problems regarding the update.</p>
    </div>
    <div class="section" id="uninstall-anaconda-repository">
    <h2>Uninstall Anaconda Repository<a class="headerlink" href="#uninstall-anaconda-repository" title="Permalink to this headline">¶</a></h2>
    <p>Before deleting you may want to make a backup for security reasons.
    Refer to this site for suggestions on mongo backups: <a class="reference external" href="https://docs.mongodb.org/manual/reference/program/mongodump/">https://docs.mongodb.org/manual/reference/program/mongodump/</a></p>
    <p>To delete Anaconda Repository, do the following:</p>
    <ol class="arabic">
    <li><p class="first">Check the file storage path by running the following command:</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="n">get</span> <span class="n">fs_storage_root</span>
    </pre></div>
    </div>
    </li>
    <li><p class="first">Delete the contents of /home/anaconda-server/repo: <code class="docutils literal"><span class="pre">rm</span> <span class="pre">-rf</span> <span class="pre">/home/anaconda-server/repo</span></code></p>
    </li>
    <li><p class="first">Delete the appropriate MongoDB database (binstar).</p>
    </li>
    <li><p class="first">Delete the contents of /etc/binstar: <code class="docutils literal"><span class="pre">rm</span> <span class="pre">-rf</span> <span class="pre">/etc/binstar</span></code></p>
    </li>
    <li><p class="first">Delete the contents of the Anaconda Repository file storage path.</p>
    </li>
    </ol>
    </div>
    <div class="section" id="update-instructions-for-current-and-past-versions">
    <h2>Update instructions for current and past versions<a class="headerlink" href="#update-instructions-for-current-and-past-versions" title="Permalink to this headline">¶</a></h2>
    <p>Updating to 2.26.6, the logging configuration can be removed. Logs
    have been moved to <code class="docutils literal"><span class="pre">$PREFIX/var/log/anaconda-server/</span></code>:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">curl</span> <span class="s1">&#39;$INSTALLER_URL&#39;</span> <span class="o">&gt;</span> <span class="n">anaconda_repository</span><span class="o">.</span><span class="n">sh</span>
    <span class="n">anaconda_repository</span><span class="o">.</span><span class="n">sh</span> <span class="o">-</span><span class="n">u</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">db</span><span class="o">-</span><span class="n">setup</span> <span class="o">--</span><span class="n">execute</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="n">remove</span> <span class="n">LOGGING</span>
    <span class="n">supervisorctl</span> <span class="n">stop</span> <span class="nb">all</span>
    <span class="n">supervisorctl</span> <span class="n">start</span> <span class="nb">all</span>
    </pre></div>
    </div>
    <p>Updating to 2.26:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">curl</span> <span class="s1">&#39;$INSTALLER_URL&#39;</span> <span class="o">&gt;</span> <span class="n">anaconda_repository</span><span class="o">.</span><span class="n">sh</span>
    <span class="n">anaconda_repository</span><span class="o">.</span><span class="n">sh</span> <span class="o">-</span><span class="n">u</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">db</span><span class="o">-</span><span class="n">setup</span> <span class="o">--</span><span class="n">execute</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">install</span><span class="o">-</span><span class="n">supervisord</span><span class="o">-</span><span class="n">config</span><span class="o">.</span><span class="n">sh</span>
    <span class="n">supervisorctl</span> <span class="n">stop</span> <span class="nb">all</span>
    <span class="n">supervisorctl</span> <span class="n">reload</span>
    <span class="n">supervisorctl</span> <span class="n">start</span> <span class="nb">all</span>
    </pre></div>
    </div>
    <p>To 2.25:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">curl</span> <span class="s1">&#39;$INSTALLER_URL&#39;</span> <span class="o">&gt;</span> <span class="n">anaconda_repository</span><span class="o">.</span><span class="n">sh</span>
    <span class="n">anaconda_repository</span><span class="o">.</span><span class="n">sh</span> <span class="o">-</span><span class="n">u</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">db</span><span class="o">-</span><span class="n">setup</span> <span class="o">--</span><span class="n">execute</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">install</span><span class="o">-</span><span class="n">supervisord</span><span class="o">-</span><span class="n">config</span><span class="o">.</span><span class="n">sh</span>
    <span class="n">supervisorctl</span> <span class="n">stop</span> <span class="nb">all</span>
    <span class="n">supervisorctl</span> <span class="n">reload</span>
    <span class="n">supervisorctl</span> <span class="n">start</span> <span class="nb">all</span>
    </pre></div>
    </div>
    <p>To 2.24:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">conda</span> <span class="n">update</span> <span class="n">binstar</span><span class="o">-</span><span class="n">server</span> <span class="n">binstar</span><span class="o">-</span><span class="n">static</span> <span class="n">anaconda</span><span class="o">-</span><span class="n">client</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">db</span><span class="o">-</span><span class="n">setup</span> <span class="o">--</span><span class="n">execute</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">install</span><span class="o">-</span><span class="n">supervisord</span><span class="o">-</span><span class="n">config</span><span class="o">.</span><span class="n">sh</span>
    <span class="n">supervisorctl</span> <span class="n">stop</span> <span class="nb">all</span>
    <span class="n">supervisorctl</span> <span class="n">reload</span>
    <span class="n">supervisorctl</span> <span class="n">start</span> <span class="nb">all</span>
    </pre></div>
    </div>
    <p>To 2.23:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">conda</span> <span class="n">update</span> <span class="n">binstar</span><span class="o">-</span><span class="n">server</span> <span class="n">binstar</span><span class="o">-</span><span class="n">static</span> <span class="n">anaconda</span><span class="o">-</span><span class="n">client</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">db</span><span class="o">-</span><span class="n">setup</span> <span class="o">--</span><span class="n">execute</span>
    <span class="n">supervisorctl</span> <span class="n">stop</span> <span class="nb">all</span>
    <span class="n">supervisorctl</span> <span class="n">reload</span>
    <span class="n">supervisorctl</span> <span class="n">start</span> <span class="nb">all</span>
    </pre></div>
    </div>
    <p>To 2.22:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">conda</span> <span class="n">update</span> <span class="n">binstar</span><span class="o">-</span><span class="n">server</span> <span class="n">binstar</span><span class="o">-</span><span class="n">static</span> <span class="n">anaconda</span><span class="o">-</span><span class="n">client</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">db</span><span class="o">-</span><span class="n">setup</span> <span class="o">--</span><span class="n">execute</span>
    <span class="n">supervisorctl</span> <span class="n">stop</span> <span class="nb">all</span>
    <span class="n">supervisorctl</span> <span class="n">reload</span>
    <span class="n">supervisorctl</span> <span class="n">start</span> <span class="nb">all</span>
    </pre></div>
    </div>
    <p>To 2.21:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">conda</span> <span class="n">update</span> <span class="n">binstar</span><span class="o">-</span><span class="n">server</span> <span class="n">binstar</span><span class="o">-</span><span class="n">static</span> <span class="n">anaconda</span><span class="o">-</span><span class="n">client</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">db</span><span class="o">-</span><span class="n">setup</span> <span class="o">--</span><span class="n">execute</span>
    <span class="n">supervisorctl</span> <span class="n">stop</span> <span class="nb">all</span>
    <span class="n">supervisorctl</span> <span class="n">reload</span>
    <span class="n">supervisorctl</span> <span class="n">start</span> <span class="nb">all</span>
    </pre></div>
    </div>
    <p>To 2.20:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">conda</span> <span class="n">update</span> <span class="n">binstar</span><span class="o">-</span><span class="n">server</span> <span class="n">binstar</span><span class="o">-</span><span class="n">static</span> <span class="n">anaconda</span><span class="o">-</span><span class="n">client</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">db</span><span class="o">-</span><span class="n">setup</span> <span class="o">--</span><span class="n">execute</span>
    <span class="n">supervisorctl</span> <span class="n">stop</span> <span class="nb">all</span>
    <span class="n">supervisorctl</span> <span class="n">reload</span>
    <span class="n">supervisorctl</span> <span class="n">start</span> <span class="nb">all</span>
    </pre></div>
    </div>
    <p>To 2.19:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">conda</span> <span class="n">update</span> <span class="n">binstar</span><span class="o">-</span><span class="n">server</span> <span class="n">anaconda</span><span class="o">-</span><span class="n">client</span> <span class="n">anaconda</span><span class="o">-</span><span class="n">build</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">db</span><span class="o">-</span><span class="n">setup</span> <span class="o">--</span><span class="n">execute</span>
    <span class="n">supervisorctl</span> <span class="n">stop</span> <span class="nb">all</span>
    <span class="n">supervisorctl</span> <span class="n">reload</span>
    <span class="n">supervisorctl</span> <span class="n">start</span> <span class="nb">all</span>
    </pre></div>
    </div>
    <p>To 2.18:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">conda</span> <span class="n">update</span> <span class="n">binstar</span><span class="o">-</span><span class="n">server</span> <span class="n">anaconda</span><span class="o">-</span><span class="n">client</span> <span class="n">anaconda</span><span class="o">-</span><span class="n">build</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">db</span><span class="o">-</span><span class="n">setup</span> <span class="o">--</span><span class="n">execute</span>
    <span class="n">supervisorctl</span> <span class="n">stop</span>
    <span class="n">supervisorctl</span> <span class="n">reload</span>
    <span class="n">supervisorctl</span> <span class="n">start</span> <span class="nb">all</span>
    </pre></div>
    </div>
    <p>To 2.17:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">conda</span> <span class="n">update</span> <span class="n">binstar</span><span class="o">-</span><span class="n">server</span> <span class="n">anaconda</span><span class="o">-</span><span class="n">client</span> <span class="n">anaconda</span><span class="o">-</span><span class="n">build</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">db</span><span class="o">-</span><span class="n">setup</span> <span class="o">--</span><span class="n">execute</span>
    <span class="n">supervisorctl</span> <span class="n">stop</span>
    <span class="n">supervisorctl</span> <span class="n">reload</span>
    <span class="n">supervisorctl</span> <span class="n">start</span> <span class="nb">all</span>
    </pre></div>
    </div>
    <p>To 2.16:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">conda</span> <span class="n">update</span> <span class="n">binstar</span><span class="o">-</span><span class="n">server</span> <span class="n">anaconda</span><span class="o">-</span><span class="n">client</span> <span class="n">anaconda</span><span class="o">-</span><span class="n">build</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">db</span><span class="o">-</span><span class="n">setup</span> <span class="o">--</span><span class="n">execute</span>
    <span class="n">supervisorctl</span> <span class="n">restart</span> <span class="nb">all</span>
    </pre></div>
    </div>
    <p>To 2.15:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">conda</span> <span class="n">update</span> <span class="n">binstar</span><span class="o">-</span><span class="n">server</span> <span class="n">anaconda</span><span class="o">-</span><span class="n">client</span> <span class="n">anaconda</span><span class="o">-</span><span class="n">build</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">db</span><span class="o">-</span><span class="n">setup</span> <span class="o">--</span><span class="n">execute</span>
    <span class="n">supervisorctl</span> <span class="n">restart</span> <span class="nb">all</span>
    </pre></div>
    </div>
    <p>To 2.14:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">conda</span> <span class="n">update</span> <span class="n">binstar</span><span class="o">-</span><span class="n">server</span> <span class="n">anaconda</span><span class="o">-</span><span class="n">client</span> <span class="n">anaconda</span><span class="o">-</span><span class="n">build</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">db</span><span class="o">-</span><span class="n">setup</span> <span class="o">--</span><span class="n">execute</span>
    <span class="n">supervisorctl</span> <span class="n">restart</span> <span class="nb">all</span>
    </pre></div>
    </div>
    <p>To 2.13:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">conda</span> <span class="n">update</span> <span class="n">binstar</span><span class="o">-</span><span class="n">server</span> <span class="n">anaconda</span><span class="o">-</span><span class="n">client</span> <span class="n">anaconda</span><span class="o">-</span><span class="n">build</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">db</span><span class="o">-</span><span class="n">setup</span> <span class="o">--</span><span class="n">execute</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="n">config</span><span class="o">-</span><span class="n">file</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">binstar</span><span class="o">/</span><span class="n">config</span><span class="o">.</span><span class="n">yaml</span> <span class="o">--</span><span class="nb">set</span> <span class="n">LABEL_NAME</span> <span class="s2">&quot;&#39;channel&#39;&quot;</span>
    <span class="n">supervisorctl</span> <span class="n">restart</span> <span class="nb">all</span>
    </pre></div>
    </div>
    <p>To 2.12:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">conda</span> <span class="n">update</span> <span class="n">binstar</span><span class="o">-</span><span class="n">server</span> <span class="n">anaconda</span><span class="o">-</span><span class="n">client</span> <span class="n">anaconda</span><span class="o">-</span><span class="n">build</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">db</span><span class="o">-</span><span class="n">setup</span> <span class="o">--</span><span class="n">execute</span>
    <span class="n">supervisorctl</span> <span class="n">restart</span> <span class="nb">all</span>
    </pre></div>
    </div>
    <p>To 2.9:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">conda</span> <span class="n">update</span> <span class="n">binstar</span><span class="o">-</span><span class="n">static</span> <span class="n">binstar</span><span class="o">-</span><span class="n">server</span> <span class="n">cas</span><span class="o">-</span><span class="n">mirror</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">db</span><span class="o">-</span><span class="n">setup</span> <span class="o">--</span><span class="n">execute</span>
    <span class="n">supervisorctl</span> <span class="n">restart</span> <span class="nb">all</span>
    </pre></div>
    </div>
    <p>To 2.8:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">conda</span> <span class="n">update</span> <span class="n">binstar</span><span class="o">-</span><span class="n">static</span> <span class="n">binstar</span><span class="o">-</span><span class="n">server</span> <span class="n">cas</span><span class="o">-</span><span class="n">mirror</span>
    <span class="n">anaconda</span><span class="o">-</span><span class="n">server</span><span class="o">-</span><span class="n">db</span><span class="o">-</span><span class="n">setup</span> <span class="o">--</span><span class="n">execute</span>
    <span class="n">supervisorctl</span> <span class="n">restart</span> <span class="nb">all</span>
    </pre></div>
    </div>
    <p>To 2.6.0:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">conda</span> <span class="n">update</span> <span class="n">binstar</span><span class="o">-</span><span class="n">server</span>
    <span class="n">conda</span> <span class="n">install</span> <span class="n">cas</span><span class="o">-</span><span class="n">mirror</span>
    </pre></div>
    </div>
    <p>To 2.5.1:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">conda</span> <span class="n">update</span> <span class="n">binstar</span><span class="o">-</span><span class="n">server</span>
    </pre></div>
    </div>
    <p>To 2.3:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">conda</span> <span class="n">update</span> <span class="n">binstar</span><span class="o">-</span><span class="n">server</span>
    <span class="n">conda</span> <span class="n">install</span> <span class="n">cas</span><span class="o">-</span><span class="n">mirror</span>
    </pre></div>
    </div>
    <p>To 2.2:</p>
    <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">conda</span> <span class="n">update</span> <span class="n">binstar</span><span class="o">-</span><span class="n">server</span>
    </pre></div>
    </div>
    </div>
