Table of Contents

Conda - Configuration (.condarc)

About

The configuration of conda is in a file called .condarc

Management

Creation

conda config
conda config  --env ...

List

List all possible configuration

conda config --help

Show

conda config --show
...........
default_channels:
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/free
  - https://repo.anaconda.com/pkgs/r
  - https://repo.anaconda.com/pkgs/pro
............

Add

conda config --add channels conda-forge

Set

conda config --set auto_update_conda False

Syntax

YAML Ain’t Markup Language (YAML)

Location

By order of precedence:

Sample

https://conda.io/docs/user-guide/configuration/sample-condarc.html

# channel locations. These override conda defaults, i.e., conda will
# search *only* the channels listed here, in the order given.
# Use "defaults" to automatically include all default channels.
# Non-url channels will be interpreted as Anaconda.org usernames
# (this can be changed by modifying the channel_alias key; see below).
# The default is just 'defaults'.
channels:
  - r
  - defaults

# Show channel URLs when displaying what is going to be downloaded
# and in 'conda list'. The default is False.
show_channel_urls: True

# For more information about this file see:
# https://conda.io/docs/user-guide/configuration/use-condarc.html

Documentation / Reference