> ## Documentation Index
> Fetch the complete documentation index at: https://anaconda.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Using conda with Anaconda Team Edition

## Configuration

You will need to configure conda to install packages from your Anaconda Team Edition installation.

1. Set your channel alias on conda:

   <Tabs>
     <Tab title="SSL">
       ```sh theme={null}
       # Replace <DOMAIN> with your domain.
       conda config --set channel_alias http(s)://<DOMAIN>/api/repo
       ```
     </Tab>

     <Tab title="No SSL">
       ```sh theme={null}
       # Replace <DOMAIN> with your domain.
       conda config --set channel_alias http://<DOMAIN>/api/repo
       ```
     </Tab>
   </Tabs>

2. Configure your default channels to include the channel where Anaconda Distribution packages have been mirrored:

   ```sh theme={null}
   # Replace <DEFAULT_CHANNEL> with the channel where Anaconda Distribution packages have been mirrored.
   conda config --prepend default_channels <DEFAULT_CHANNEL>
   ```

You can run the above command multiple times to configure several default channels.

***

Alternatively, you can edit your `.condarc` file manually:

You will need to configure your conda configuration file, `.condarc`, to point to your instance of Anaconda Team Edition and
set up the channel(s) you want to pull packages from. This enables conda to install packages from your instance of
Anaconda Team Edition rather than pulling from repo.anaconda.com.

The location of your `.condarc` file depends on which operating system you use. Consult the
[condarc documentation](https://docs.conda.io/projects/conda/en/latest/user-guide/configuration/use-condarc.html)
to determine the correct path.

1. Open the `.condarc` file with a text editor

2. Set the `channel_alias` and the `default_channels`

   ```sh theme={null}
   channel_alias: https://<HOST_NAME>.<COMPANY>.com/api/repo

   default_channels:
   - <DEFAULT_CHANNEL>
   ```

3. Save the file.

## Installing packages

Install packages from Anaconda Team Edition (public channels):

```sh theme={null}
conda install [-c <CHANNEL_NAME>] <PACKAGE_NAME>
```

The `-c <CHANNEL_NAME>` flag allows you to install packages from channels on Anaconda Team Edition that have been
created by users or administrators.

If you do not specify the `-c` flag, packages will be taken from the channels in the `default_channels` configuration.

<Note>
  Prior to installing packages from a private or authenticated channel, you first need to log in using the [Anaconda Team Edition CLI](./cli), **not** from the browser.
</Note>

## Conda Reference

More information on conda commands can be found in the [conda documentation](https://docs.conda.io/en/latest/).
