

One more thing is that I’ve found out that all of this data is stored in the history file in the conda-meta directory of your environment ( CONDA_ROOT/conda-meta for your default environment and CONDA_ROOT/envs/ENV_NAME/conda-meta for any other environment). You can see that the changes for revision 3 are just the inverse of revision 2. For example, if your revision list looks like this: 21:12:34 (rev 1)Īnd you revert to revision 1 by running conda install -revision 1, and then run conda list -revisions again, you’ll get this: 21:13:08 (rev 2) I’ve got a few other hints for you though…įirstly, if you ‘revert’ to a previous revision then you will find that an ‘inverse’ revision is created, simply doing the opposite of what the previous revision did. So, I think that’s pretty awesome – and really handy if you screw things up and want to go back to a previously working environment. This will ask you to confirm the relevant package uninstallation/installation – and get you back to exactly where you were before! If you want to revert to a previous revision you can simply run conda install -revision N (where N is the revision number). In this output you can see a number of specific versions (or revisions)Â of this environment (in this case the default conda environment), along with the date/time they were created, and the differences (installed packages shown as +, uninstalled shown as - and upgrades shown as ->). If you run conda list -revisions, you’ll get an output like this: 20:20:37Â (rev 10)


The best way to explain is by a quick example. However, the other day I came across a wonderful feature that I’d never known about before… revisions! I now use Anaconda as my primary Python distribution – and my company have also adopted it for use on all of their developer machines as well as their servers – so I like to think I’m a relatively knowledgeable user. Robin's Blog Conda revisions: letting you ‘rollback’ to a previous version of your environment June 14, 2016
