The configuration of conda is in a file called .condarc
- In the user home
- in the root of an environment
conda config --env ...
List all possible configuration
- Via conda
conda config --help
- Via file ../../commands/conda-config
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 ............
- With the config subcommand
conda config --add channels conda-forge
conda config --set auto_update_conda False
By order of precedence:
- in the root environment of an environment. By default conda_home/envs/envName/.condarc
# 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.