About
The configuration of conda is in a file called .condarc
Management
Creation
- In the user home
conda config
- in the root of an environment
conda config --env ...
List
List all possible configuration
- Via conda
conda config --help
- Via file ../../commands/conda-config
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
- With the config subcommand
conda config --add channels conda-forge
Set
conda config --set auto_update_conda False
Syntax
Location
By order of precedence:
- in the root environment of an environment. By default conda_home/envs/envName/.condarc
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
- It adds the r Anaconda.org channel and enables the show_channel_urls option.