Viewing history of conda transactions?

前端 未结 2 690
慢半拍i
慢半拍i 2020-12-31 20:15

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.

<
2条回答
  •  抹茶落季
    2020-12-31 20:35

    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
    

提交回复
热议问题