> ## 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.

# Updating conda packages

Keeping your conda packages up to date ensures you have access to the latest features, bug fixes, and security patches. The `conda update` command provides flexible options for updating your packages. The sections below explain how to update individual packages, multiple packages at once, or entire environments. You can also run `conda update --help` to see a list of all available update command options.

## Updating a single package

To update a single package, run the following command:

```sh theme={null}
conda update <PACKAGE>
```

Comments

Replace \<PACKAGE> with the name of the package you want to update.

When you update a package, conda might also update other packages in the environment to maintain compatibility, or install new packages required by updated dependencies. This helps prevent your environment from breaking due to dependency changes. To prevent conda from updating any packages other than the one you specify, use the `--no-update-deps` flag.

> [!NOTE]
>
> The `--no-update-deps` flag only prevents conda from *updating* other packages in the environment. It does not prevent conda from installing new packages required by updated dependencies.

## Updating multiple packages

To update multiple packages, list the packages separated by a space:

```sh theme={null}
conda update <PACKAGE> <PACKAGE> <PACKAGE>
```

Comments

Replace each \<PACKAGE> with the name of a package you want to update.

## Updating a package to a specific version

If you need to update a package to a specific version, use the [conda install](https://anaconda.com/docs/getting-started/working-with-conda/packages/install-packages.md#specifying-package-versions) command instead.

## Specifying a channel for package updates

Specifying a channel (A location (URL or file path) in a repository where conda looks for packages.) to use when updating a package is useful if the package you want to update is only available (or is more up to date) in a specific channel. Use the `--override-channels` flag to ignore the channels configured in your environment and `.condarc` file, and the `--channel` flag to provide the channel you want to use.

```sh theme={null}
conda update <PACKAGE> --override-channels --channel <CHANNEL>
```

Comments

Replace \<PACKAGE> with the name of the package you want to update.\\

Replace \<CHANNEL> with the name of the channel you want to use.

## Updating all packages

> [!WARNING]
>
> Running `conda update --all` might not update all the packages in a given environment to their latest versions. If the latest version of a package is incompatible with other packages installed in the environment, conda will only update that package to the *latest compatible version*.

```sh theme={null}
conda update --all
```

For more information on updating packages, see the [official conda documentation](https://docs.conda.io/projects/conda/en/stable/commands/update.html).
