Skip to main content

Command referenceconda install --revision

conda install --revision command (Linux & Windows / Conda)

Linux & WindowsCondapackageadvancedDestructive — use carefully

What it does

Roll an environment back to a previous Conda transaction revision. When people look up conda install revision, 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.

Roll an environment back to a previous Conda transaction revision.

Syntax

conda install --revision REV [-n ENV]

Common options

Flag / optionMeaning
--revision REVRevision number from `conda list --revisions`.
-n, --nameEnvironment to roll back.
-y, --yesSkip confirmation.

Practical examples

Inspect history

conda list --revisions

Shows numbered revisions before you pick a target.

Roll back

conda install --revision 3

Restores the active env to revision 3.

Named env

conda install -n web --revision 5

Rolls web back without activating it.

Common mistakes

  • Picking a revision without reading the revision list first.
  • Expecting revision rollback to undo manual file edits outside Conda transactions.

FAQ

What does conda install --revision do in Conda?

Roll an environment back to a previous Conda transaction revision.

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

Try `conda list --revisions` — Shows numbered revisions before you pick a target.

Is mamba the same as conda install --revision?

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.