Command referenceconda install --revision
conda install --revision command (Linux & Windows / Conda)
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 / option | Meaning |
|---|---|
| --revision REV | Revision number from `conda list --revisions`. |
| -n, --name | Environment to roll back. |
| -y, --yes | Skip 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.
Related commands
- conda listList packages installed in the active or named Conda environment.
- conda installInstall packages into the active or named Conda environment from configured channels.
- 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 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.