Skip to main content

Command referenceconda list --explicit

conda list --explicit command (Linux & Windows / Conda)

Linux & WindowsCondapackageintermediate

What it does

Print exact package URLs for the environment so you can recreate the same builds later. When people look up conda list explicit, 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.

Print exact package URLs for the environment so you can recreate the same builds later.

Syntax

conda list --explicit [-n ENV] > spec-file.txt

Common options

Flag / optionMeaning
--explicitEmit full package URLs.
-n, --nameEnvironment to export.
> spec-file.txtSave the lock-like list to disk.

Practical examples

Write a spec file

conda list --explicit > spec-file.txt

Captures exact builds from the active environment.

Recreate later

conda create --name repro --file spec-file.txt

Builds a new env from the explicit URL list.

Named env

conda list -n ml --explicit > ml-spec.txt

Exports ml without activating it.

Common mistakes

  • Sharing explicit files across Windows and Linux unchanged.
  • Editing URLs by hand and breaking checksums / paths.

FAQ

What does conda list --explicit do in Conda?

Print exact package URLs for the environment so you can recreate the same builds later.

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

Try `conda list --explicit > spec-file.txt` — Captures exact builds from the active environment.

Is mamba the same as conda list --explicit?

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.