Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Viewing history of conda transactions?

Is there a way of viewing past conda transactions? For instance, a history of all conda install actions I did in the current environment would be great.

Thanks

like image 676
information_interchange Avatar asked May 10 '19 02:05

information_interchange


People also ask

How do I check conda history?

When you use the "my_env/conda-meta/history", it shows the exact cmd as well that as been used for the successive revisions and it shows the date as well.

Where are conda environments saved?

All Installed Conda Environments are stored in your Block Volume in the /home/datascience/conda directory.

Does PIP list show conda packages?

The Pip, Pipenv, Anaconda Navigator, and Conda Package Managers can all be used to list installed Python packages. You can also use the ActiveState Platform's command line interface (CLI), the State Tool to list all installed packages using a simple “state packages” command.


2 Answers

There is a --revisions, -r flag for this.

conda list --revisions

Check the conda list --help for more info.

If you'd like an exact history, there is a conda-meta/history log in every env. You could, for example, pull out every command ever executed in an env, plus a timestamp, using

grep -B1 "^# cmd" my_env/conda-meta/history
like image 171
merv Avatar answered Sep 22 '22 20:09

merv


When you use the "my_env/conda-meta/history", it shows the exact cmd as well that as been used for the successive revisions and it shows the date as well.

For example, following is the snippet of the my_env/conda-meta/history

==> 2020-04-08 03:47:11 <==
# cmd: /home/calvin/anaconda3/bin/conda update -c nilmtk nilmtk
# conda version: 4.8.3
like image 21
justCalvin Avatar answered Sep 26 '22 20:09

justCalvin