Skip to main content

Overview

The conda list command lists all packages installed into a conda environment. It can display packages in various formats and can be filtered by regular expressions.

Syntax

conda list [options] [regex]

Target Environment Specification

-n, --name
string
Name of environment.
-p, --prefix
string
Full path to environment location (i.e. prefix).

Filtering

regex
string
List only packages matching this regular expression.
-f, --full-name
boolean
Only search for full names, i.e., ^<regex>$. --full-name NAME is identical to regex ^NAME$.

Output Format Options

--fields
string
Comma-separated list of fields to print. Valid values include: name, version, build, channel, size, etc.
--reverse
boolean
List installed packages in reverse order.
-c, --canonical
boolean
Output canonical names of packages only.
--explicit
boolean
List explicitly all installed conda packages with URL (output may be used by conda create --file).
--md5
boolean
Add MD5 hashsum when using --explicit.
--sha256
boolean
Add SHA256 hashsum when using --explicit.
-e, --export
boolean
Output explicit, machine-readable requirement strings instead of human-readable lists of packages. This output may be used by conda create --file.
-r, --revisions
boolean
List the revision history.
--size
boolean
Show package and environment sizes.
--show-channel-urls
boolean
Show channel urls. Overrides the value given by conda config --show show_channel_urls.

Package Source Options

--no-pip
boolean
Do not include pip-only installed packages.
--auth
boolean
In explicit mode, leave authentication details in package URLs. They are removed by default otherwise.

Output Options

--json
boolean
Report all output as json. Suitable for using conda programmatically.
-v, --verbose
boolean
Can be used multiple times. Once for detailed output, twice for INFO logging, thrice for DEBUG logging, four times for TRACE logging.
-q, --quiet
boolean
Do not display progress bar.

Examples

conda list

Common Use Cases

Listing All Packages

Display all packages in the current environment:
conda list

Searching for Specific Packages

Use regex to find packages matching a pattern:
conda list ^python
This lists all packages starting with “python”.

Exporting Package List

Create a requirements file for environment recreation:
conda list --export > requirements.txt
Reinstall from the export:
conda create -n myenv --file requirements.txt

Creating Explicit Specification

Generate an explicit specification file with URLs:
conda list --explicit > environment.txt
Recreate environment from explicit file:
conda create -n myenv --file environment.txt

Viewing Package Sizes

Check how much space packages are using:
conda list --size

Listing Specific Fields

Customize output to show only certain fields:
conda list --fields name,version,channel

Checking Revision History

View environment changes over time:
conda list --revisions

Filtering by Environment

List packages in a specific environment:
conda list -n production

Machine-Readable Output

Get JSON output for programmatic processing:
conda list --json > packages.json

Excluding Pip Packages

List only conda-installed packages:
conda list --no-pip
The --explicit format includes full URLs for each package, making it ideal for exact environment reproduction across systems.
Use --export format for lighter-weight package lists that still allow environment recreation. The explicit format is more robust but creates larger files.
Combine --fields with --json for programmatic parsing of specific package information.

Build docs developers (and LLMs) love