Table of Contents

Conda - Channel

About

A package repository is called a channel in Conda.

This is a store for conda package.

Conda packages are downloaded from remote channels, which are URLs to directories containing conda packages.

The conda command searches a default set of channels. You can modify what remote channels are automatically searched. You might want to do this to maintain a private or internal channel.

Configuration

Create

See https://conda.io/docs/user-guide/tasks/create-custom-channels.html

List

conda config --show
custom_channels:
  pkgs/main: https://repo.anaconda.com
  pkgs/free: https://repo.anaconda.com
  pkgs/r: https://repo.anaconda.com
  pkgs/pro: https://repo.anaconda.com
  usr/local/conda-bld: file://
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

Set

The list of channel can be configured in .condarc

channels:
  - <anaconda_dot_org_username>
  - http://some.custom/channel
  - file:///some/local/directory
  - defaults

where:

Show

Show channel URLs when:

show_channel_urls: True

Allow other channel

Doc

allow_other_channels: False

Where:

Default

Packages are automatically downloaded and updated from http://repo.continuum.io/pkgs/.

The defaults channel points to several channels at the repo.continuum.io repository but you can override them with the default_channels properties.

default_channels:
  - <anaconda_dot_org_username>
  - http://some.custom/channel
  - file:///some/local/directory

With the config command.

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

Documentation / Reference