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.
- Install Anaconda Enterprise
- Complete the post-install configuration
- Install the Anaconda Enterprise CLI
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:
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>
Run the following command to install the bootstrap Miniconda environment to
$ ./cas_mirror-<version>-linux-64.sh Welcome to cas_mirror <anaconda-enterprise-installer_version> [...]
At the following installer prompt, we recommend you choose
Do you wish the installer to prepend the cas_mirror install location to PATH in your/home/centos/.bashrc ?
When the installer finishes, close and re-open your terminal window for the installation to take effect.
In your new terminal window, activate the custom Miniconda environment with the following command:
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.