Repositories for Miniconda: Difference between revisions
DrEdWilliams (talk | contribs) (Created page with "Conda, the package manager from Anaconda, is now available as either a RedHat RPM or as a Debian package. The packages are the equivalent to the Miniconda installer which only...") |
(No difference)
|
Latest revision as of 01:23, 3 August 2019
Conda, the package manager from Anaconda, is now available as either a RedHat RPM or as a Debian package. The packages are the equivalent to the Miniconda installer which only contains conda and its dependencies. You can use yum or apt-get to install, uninstall and manage conda on your system. To install conda follow the instructions for your Linux distribution.
To install the RPM on RedHat, CentOS, Fedora distributions and other RPM based distributions such as openSUSE, download the gpg key and add a repository configuration file for conda.
# Import our gpg public key rpm --import https://repo.anaconda.com/pkgs/misc/gpgkeys/anaconda.asc # Add the Anaconda repository cat <<EOF > /etc/yum.repos.d/conda.repo [conda] name=Conda baseurl=https://repo.anaconda.com/pkgs/misc/rpmrepo/conda enabled=1 gpgcheck=1 gpgkey=https://repo.anaconda.com/pkgs/misc/gpgkeys/anaconda.asc EOF
Conda is ready for install on your RPM based distribution.
# Install it! yum install conda
To install on Debian based Linux distributions such as Ubuntu, download the public gpg key and add the conda repository to the sources list.
# Install our public gpg key to trusted store curl https://repo.anaconda.com/pkgs/misc/gpgkeys/anaconda.asc | gpg --dearmor > conda.gpg install -o root -g root -m 644 conda.gpg /etc/apt/trusted.gpg.d/ # Add our debian repo echo "deb [arch=amd64] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" > /etc/apt/sources.list.d/conda.list
Conda is ready to install on you Debian based distribution.
# Install it! apt-get update apt-get install conda
Check to see if the installation is successful by typing:
source /opt/conda/etc/profile.d/conda.sh conda -V conda 4.5.11
Installing conda packages with the system package manager makes it very easy to distribute conda across a cluster of machines running Linux without having to worry about any non privileged user modifying the installation. Any non privileged user simply needs to run `source /opt/conda/etc/profile.d/conda.sh` to use conda.
Administrators can also distribute a .condarc file at /opt/conda/.condarc so that a predefined configuration for channels, package cache directory and environment locations is pre-seeded to all users in a large organization. A sample configuration could like:
channels: - defaults pkg_dirs: - /shared/conda/pkgs - $HOME/.conda/pkgs envs_dirs: - /shared/conda/envs - $HOME/.conda/envs
These rpm and debian packages provide another way to setup conda inside a docker container.
It is recommended to use this installation in a read only manner and upgrade conda using the respective package manager only.
If you’re new to conda, check out the documentation at https://conda.io/docs/