Skip to main content

Command referenceconda update

conda update command (Linux & Windows / Conda)

Linux & WindowsCondapackagebeginner

What it does

Update Conda packages (or Conda itself) to newer compatible versions. When people look up conda update package, they usually want safe flags, copyable examples, and how this Conda subcommand fits Anaconda or Miniconda workflows on Linux, Windows, and macOS. Syntax, options, and practical examples are below.

Update Conda packages (or Conda itself) to newer compatible versions.

Syntax

conda update [-n ENV] PACKAGE [PACKAGE ...] | conda update --all

Common options

Flag / optionMeaning
PACKAGEUpdate a specific package.
--allUpdate every package in the environment.
condaUpdate the Conda CLI in the base environment.
-n, --nameTarget a named environment.
-y, --yesSkip confirmation.

Practical examples

Update one package

conda update numpy

Moves NumPy to a newer build allowed by the solver.

Update everything

conda update --all

Refreshes the active environment's packages.

Update Conda

conda update -n base -c defaults conda

Upgrades the Conda tool itself in base.

Alias form

conda upgrade pandas

`upgrade` is an alias of `update`.

Common mistakes

  • Blindly running `conda update --all` in a carefully pinned production env.
  • Updating packages in the wrong environment because it was not activated.

FAQ

What does conda update do in Conda?

Update Conda packages (or Conda itself) to newer compatible versions.

Does conda update work on Windows and Linux?

Yes. Conda runs on Linux, Windows, and macOS; shell activation differs slightly after `conda init`, but the CLI flags are the same.

What is a practical conda update example?

Try `conda update numpy` — Moves NumPy to a newer build allowed by the solver.

Is mamba the same as conda update?

Mamba is a faster drop-in solver for many Conda workflows. Prefer `mamba` only when it is installed; otherwise use the Conda commands on this page.

Browse the full Linux and Windows command reference to search more bash, CMD, PowerShell, Conda, and GitHub CLI commands.