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

.. 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-python"><div class="highlight"><pre><span></span>curl &#39;$INSTALLER_URL&#39; &gt; anaconda_repository.sh
    bash anaconda_repository.sh -u
    anaconda-server-db-setup --execute
    supervisorctl stop all
    supervisorctl reload
    supervisorctl start all
    </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-python"><div class="highlight"><pre><span></span>anaconda-server-config --get fs_storage_root
    </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.27:</p>
    <div class="highlight-python"><div class="highlight"><pre><span></span>curl &#39;$INSTALLER_URL&#39; &gt; anaconda_repository.sh
    bash anaconda_repository.sh -u
    anaconda-server-db-setup --execute
    supervisorctl stop all
    supervisorctl reload
    supervisorctl start all
    </pre></div>
    </div>
    <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-python"><div class="highlight"><pre><span></span>curl &#39;$INSTALLER_URL&#39; &gt; anaconda_repository.sh
    bash anaconda_repository.sh -u
    anaconda-server-db-setup --execute
    anaconda-server-config --remove LOGGING
    supervisorctl stop all
    supervisorctl start all
    </pre></div>
    </div>
    <p>Updating to 2.26:</p>
    <div class="highlight-python"><div class="highlight"><pre><span></span>curl &#39;$INSTALLER_URL&#39; &gt; anaconda_repository.sh
    bash anaconda_repository.sh -u
    anaconda-server-db-setup --execute
    supervisorctl stop all
    supervisorctl reload
    supervisorctl start all
    </pre></div>
    </div>
    <p>To 2.25:</p>
    <div class="highlight-python"><div class="highlight"><pre><span></span>curl &#39;$INSTALLER_URL&#39; &gt; anaconda_repository.sh
    bash anaconda_repository.sh -u
    anaconda-server-db-setup --execute
    supervisorctl stop all
    supervisorctl reload
    supervisorctl start all
    </pre></div>
    </div>
    <p>To 2.24:</p>
    <div class="highlight-python"><div class="highlight"><pre><span></span>conda update binstar-server binstar-static anaconda-client
    anaconda-server-db-setup --execute
    anaconda-server-install-supervisord-config.sh
    supervisorctl stop all
    supervisorctl reload
    supervisorctl start all
    </pre></div>
    </div>
    <p>To 2.23:</p>
    <div class="highlight-python"><div class="highlight"><pre><span></span>conda update binstar-server binstar-static anaconda-client
    anaconda-server-db-setup --execute
    supervisorctl stop all
    supervisorctl reload
    supervisorctl start all
    </pre></div>
    </div>
    <p>To 2.22:</p>
    <div class="highlight-python"><div class="highlight"><pre><span></span>conda update binstar-server binstar-static anaconda-client
    anaconda-server-db-setup --execute
    supervisorctl stop all
    supervisorctl reload
    supervisorctl start all
    </pre></div>
    </div>
    <p>To 2.21:</p>
    <div class="highlight-python"><div class="highlight"><pre><span></span>conda update binstar-server binstar-static anaconda-client
    anaconda-server-db-setup --execute
    supervisorctl stop all
    supervisorctl reload
    supervisorctl start all
    </pre></div>
    </div>
    <p>To 2.20:</p>
    <div class="highlight-python"><div class="highlight"><pre><span></span>conda update binstar-server binstar-static anaconda-client
    anaconda-server-db-setup --execute
    supervisorctl stop all
    supervisorctl reload
    supervisorctl start all
    </pre></div>
    </div>
    <p>To 2.19:</p>
    <div class="highlight-python"><div class="highlight"><pre><span></span>conda update binstar-server anaconda-client anaconda-build
    anaconda-server-db-setup --execute
    supervisorctl stop all
    supervisorctl reload
    supervisorctl start all
    </pre></div>
    </div>
    <p>To 2.18:</p>
    <div class="highlight-python"><div class="highlight"><pre><span></span>conda update binstar-server anaconda-client anaconda-build
    anaconda-server-db-setup --execute
    supervisorctl stop
    supervisorctl reload
    supervisorctl start all
    </pre></div>
    </div>
    <p>To 2.17:</p>
    <div class="highlight-python"><div class="highlight"><pre><span></span>conda update binstar-server anaconda-client anaconda-build
    anaconda-server-db-setup --execute
    supervisorctl stop
    supervisorctl reload
    supervisorctl start all
    </pre></div>
    </div>
    <p>To 2.16:</p>
    <div class="highlight-python"><div class="highlight"><pre><span></span>conda update binstar-server anaconda-client anaconda-build
    anaconda-server-db-setup --execute
    supervisorctl restart all
    </pre></div>
    </div>
    <p>To 2.15:</p>
    <div class="highlight-python"><div class="highlight"><pre><span></span>conda update binstar-server anaconda-client anaconda-build
    anaconda-server-db-setup --execute
    supervisorctl restart all
    </pre></div>
    </div>
    <p>To 2.14:</p>
    <div class="highlight-python"><div class="highlight"><pre><span></span>conda update binstar-server anaconda-client anaconda-build
    anaconda-server-db-setup --execute
    supervisorctl restart all
    </pre></div>
    </div>
    <p>To 2.13:</p>
    <div class="highlight-python"><div class="highlight"><pre><span></span>conda update binstar-server anaconda-client anaconda-build
    anaconda-server-db-setup --execute
    anaconda-server-config --config-file /etc/binstar/config.yaml --set LABEL_NAME &quot;&#39;channel&#39;&quot;
    supervisorctl restart all
    </pre></div>
    </div>
    <p>To 2.12:</p>
    <div class="highlight-python"><div class="highlight"><pre><span></span>conda update binstar-server anaconda-client anaconda-build
    anaconda-server-db-setup --execute
    supervisorctl restart all
    </pre></div>
    </div>
    <p>To 2.9:</p>
    <div class="highlight-python"><div class="highlight"><pre><span></span>conda update binstar-static binstar-server cas-mirror
    anaconda-server-db-setup --execute
    supervisorctl restart all
    </pre></div>
    </div>
    <p>To 2.8:</p>
    <div class="highlight-python"><div class="highlight"><pre><span></span>conda update binstar-static binstar-server cas-mirror
    anaconda-server-db-setup --execute
    supervisorctl restart all
    </pre></div>
    </div>
    <p>To 2.6.0:</p>
    <div class="highlight-python"><div class="highlight"><pre><span></span>conda update binstar-server
    conda install cas-mirror
    </pre></div>
    </div>
    <p>To 2.5.1:</p>
    <div class="highlight-python"><div class="highlight"><pre><span></span>conda update binstar-server
    </pre></div>
    </div>
    <p>To 2.3:</p>
    <div class="highlight-python"><div class="highlight"><pre><span></span>conda update binstar-server
    conda install cas-mirror
    </pre></div>
    </div>
    <p>To 2.2:</p>
    <div class="highlight-python"><div class="highlight"><pre><span></span>conda update binstar-server
    </pre></div>
    </div>
    </div>
