Installing conda for packaging mirroring

To help improve performance and security, Anaconda Enterprise enables you to create a local copy of an online package repository so users can access the packages from a centralized, on-premises location. This copy is called a mirror. A mirror can be complete, partial, or include specific packages or types of packages.

To enable package mirroring, you’ll need to install conda, then cas-mirror. The Anaconda Enterprise installer contains a bootstrap executable that you can run to install conda, following the instructions below.

After installing conda, you can install cas-mirror, along with the Anaconda Enterprise CLI.


To install conda:

  1. In a terminal window, navigate to the directory where you downloaded and extracted the Anaconda Enterprise installer, replacing <version> with your specific version number:

    $ cd anaconda-enterprise-<version>\installer
  2. Run the following command to verify whether the bzip2 package is installed:

    which bunzip2

If the command returns a valid package, you can run the bootstrap executable. Otherwise use your package manager to install the binary, using either yum install bzip2 or apt -git install bzip2.

  1. Run the following command to run the bootstrap executable:

    $ ./conda-bootstrap-<version>
  2. Type yes when prompted to accept the end user license agreement (EULA).

  3. Accept the default path, or enter an alternate path when prompted.

  4. When prompted, type yes to activate the conda commmand at shell initialization.

  5. Re-initialize your terminal for the previous steps to take effect:

    source ~/.bashrc

Next Step:

Now that you’ve installed conda, you can install the other tools you’ll need to be able to mirror channels and packages.