Installing the Anaconda package mirroring tool

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.


The Anaconda package mirroring tool is called cas-mirror. The Anaconda Enterprise installer contains a script named cas-mirror-<version>.sh that you can run to install the tool.

To install cas-mirror:

  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>
  2. Run the following command to install the bootstrap Miniconda environment to ~/cas_mirror:

    $ ./cas_mirror-<version>
    Welcome to cas_mirror <anaconda-enterprise-installer_version>
  3. At the following installer prompt, we recommend you choose yes:

    Do you wish the installer to prepend the cas_mirror install location to PATH in your/home/centos/.bashrc ?
  4. When the installer finishes, close and re-open your terminal window for the installation to take effect.

  5. In your new terminal window, activate the custom Miniconda environment with the following command:

    source ~/cas-mirror/bin/activate

Now that you’ve installed the package mirroring tool, you can configure access to the source of the packages to be mirrored, whether an online repository or a tarball (if an air-gapped installation). Then you’ll be ready to begin mirroring channels and packages.