Command referenceconda list
conda list command (Linux & Windows / Conda)
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 / option | Meaning |
|---|---|
| regex | Filter package names with a regular expression. |
| -n, --name | List packages in a named environment. |
| --explicit | Print URLs suitable for exact recreation. |
| --export | Print a requirements-style package list. |
| --revisions | Show revision history for the environment. |
| --json | Machine-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.
Related commands
- conda installInstall packages into the active or named Conda environment from configured channels.
- conda searchSearch configured channels for available package versions before installing.
- conda env exportExport the active (or named) environment to a YAML or explicit package lock for sharing.
- conda removeUninstall one or more packages from a Conda environment (or remove an entire env with --all).
- conda createCreate a new isolated Conda environment with an optional Python version and starter packages.
- conda activateActivate a named or path-based Conda environment in the current shell session.
- conda env listList all Conda environments and mark the currently active one.
- aptSearch, install, update, and remove packages on Debian-based systems.
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.