This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
other:uvcdat:cdat_conda:miniconda3_install [2024/04/24 15:09] jypeter [Windows computer] |
other:uvcdat:cdat_conda:miniconda3_install [2024/05/29 13:57] (current) jypeter [Updating (Mini)conda] |
||
---|---|---|---|
Line 307: | Line 307: | ||
* Check the current version of ''conda'' | * Check the current version of ''conda'' | ||
- | * <code>$ conda list -n base | grep conda | + | * <code>$ conda list -n base | grep '^conda' |
# packages in environment at /path_to_miniconda: | # packages in environment at /path_to_miniconda: | ||
conda 24.1.2 py312h06a4308_0 | conda 24.1.2 py312h06a4308_0 | ||
Line 532: | Line 532: | ||
==== Installation history ==== | ==== Installation history ==== | ||
+ | You can get the current list of installed packages with ''conda list -n existing_environment'', but it may also be useful to know in which order the packages were installed: | ||
+ | * ''conda list -n existing_environment %%--%%revisions'': display **exactly** what was installed and when (including the updates, and automatic dependencies installation) | ||
+ | * You can theoretically roll back to a previous ''RR'' //revision// number with: ''conda install -n existing_environment %%--%%revision RR'' | ||
+ | * There is more information in the ''/path_to_miniconda/conda-meta/history'' installation log files. | ||
+ | * ''base'' history file: ''/path_to_miniconda/conda-meta/history'' | ||
+ | * ''existing_environment'' history file: ''/path_to_miniconda/envs/existing_environment/conda-meta/history'' | ||
+ | * e.g. installation commands for the ''base'' environment:\\ <code> $ egrep -e 'cmd:' -e '==>' /homedata/jypmce/miniconda3_2024-03/conda-meta/history | ||
+ | |||
+ | ==> 2024-02-23 18:39:23 <== | ||
+ | # cmd: constructor /tmp/tmp.4um5tGKcqW/miniconda3/ --output-dir /tmp/tmp.4um5tGKcqW | ||
+ | ==> 2024-03-27 16:10:01 <== | ||
+ | # cmd: /homedata/jypmce/miniconda3_2024-03/bin/conda update -n base --all | ||
+ | ==> 2024-03-28 11:38:08 <== | ||
+ | [...] | ||
+ | ==> 2024-04-24 17:47:32 <== | ||
+ | # cmd: /homedata/jypmce/miniconda3_2024-03/bin/conda update -n base --all</code> | ||
+ | * You can also, use a script and the ''conda'' module available **in the ''base'' environment**: [[https://github.com/conda/conda/issues/4545#issuecomment-469984684|example]] | ||
===== Uninstalling Miniconda3 ===== | ===== Uninstalling Miniconda3 ===== | ||
Line 549: | Line 566: | ||
==== Linux-like computer ==== | ==== Linux-like computer ==== | ||
+ | |||
+ | FIXME | ||