Skip to main content

Command referenceconda list

conda list command (Linux & Windows / Conda)

Linux & WindowsCondapackagebeginner

What it does

List packages installed in the active or named Conda environment. When people look up conda list packages, 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.

List packages installed in the active or named Conda environment.

Syntax

conda list [-n ENV] [regex] [options]

Common options

Flag / optionMeaning
regexFilter package names with a regular expression.
-n, --nameList packages in a named environment.
--explicitPrint URLs suitable for exact recreation.
--exportPrint a requirements-style package list.
--revisionsShow revision history for the environment.
--jsonMachine-readable output.

Practical examples

All packages

conda list

Shows name, version, build, and channel for the active env.

Filter by name

conda list numpy

Lists packages whose names match numpy.

Explicit lock file

conda list --explicit > spec-file.txt

Captures exact package URLs for reproducible installs.

Named env

conda list -n ml

Inspects ml without activating it.

Revision history

conda list --revisions

Helps you roll back with `conda install --revision`.

Common mistakes

  • Assuming `conda list` shows pip-only packages the same way on every Conda version — pip entries may appear with a different marker.
  • Sharing `--explicit` files across incompatible platforms.

FAQ

What does conda list do in Conda?

List packages installed in the active or named Conda environment.

Does conda list 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 list example?

Try `conda list` — Shows name, version, build, and channel for the active env.

Is mamba the same as conda list?

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.