conda list#

List installed packages in a conda environment.

usage: conda list [-h] [-n ENVIRONMENT | -p PATH] [--json] [--console CONSOLE]
                  [-v] [-q] [--show-channel-urls] [--reverse] [-c] [-f]
                  [--explicit] [--md5] [--sha256] [-e] [-r] [--no-pip]
                  [--auth]
                  [regex]

Positional Arguments#

regex

List only packages matching this regular expression.

Named Arguments#

--show-channel-urls

Show channel urls. Overrides the value given by conda config --show show_channel_urls.

--reverse

List installed packages in reverse order.

-c, --canonical

Output canonical names of packages only.

-f, --full-name

Only search for full names, i.e., ^<regex>$. --full-name NAME is identical to regex '^NAME$'.

--explicit

List explicitly all installed conda packages with URL (output may be used by conda create --file).

--md5

Add MD5 hashsum when using --explicit.

--sha256

Add SHA256 hashsum when using --explicit.

-e, --export

Output explicit, machine-readable requirement strings instead of human-readable lists of packages. This output may be used by conda create --file.

-r, --revisions

List the revision history.

--no-pip

Do not include pip-only installed packages.

--auth

In explicit mode, leave authentication details in package URLs. They are removed by default otherwise.

Target Environment Specification#

-n, --name

Name of environment.

-p, --prefix

Full path to environment location (i.e. prefix).

Output, Prompt, and Flow Control Options#

--json

Report all output as json. Suitable for using conda programmatically.

--console

Select the backend to use for normal output rendering.

-v, --verbose

Can be used multiple times. Once for detailed output, twice for INFO logging, thrice for DEBUG logging, four times for TRACE logging.

-q, --quiet

Do not display progress bar.

Examples:

List all packages in the current environment:

conda list

List all packages in reverse order:

conda list --reverse

List all packages installed into the environment 'myenv':

conda list -n myenv

List all packages that begin with the letters "py", using regex:

conda list ^py

Save packages for future use:

conda list --export > package-list.txt

Reinstall packages from an export file:

conda create -n myenv --file package-list.txt