Conda vs Mamba comparision

From HPCWIKI
Revision as of 08:24, 20 December 2023 by Admin (talk | contribs)
Jump to navigation Jump to search
Type Mamba Conda Notes
clone env Export the contents of the existing environment to a YAML file.

micromamba env export -n oldenv > oldenv.yaml

Create a new environment from the YAML file.

micromamba env create -n newenv -f oldenv.yaml

conda create --name CLONE_ENV_NAME --clone ENV_NAME
Installing conda install -n base -c conda-forge mamba mamba must be installed on base
Adding channels conda config --add channels conda-forge
Updating mamba update -n base mamba
Finding a Package mamba repoquery search PACKAGE
Searching for dependencies mamba repoquery depends -a PACKAGE
Creating an environment mamba create -n ENV_NAME PACKAGE
Adding/Updating software mamba install -n ENV_NAME PACKAGE

mamba update -n ENV_NAME --all

Removing a package mamba remove -n ENV_NAME PACKAGE
Undoing changes to an environment mamba list -n ENV_NAME --revisions

mamba install -n ENV_NAME --revision 1

Show environment conda env export --no-builds
Removing an environment mamba env remove -n ENV_NAME conda remove --name ENV_NAME --all
Exporting an environment mamba env export -n ENV_NAME > ENV_NAME.yaml conda env export -n ENV_NAME --no-builds | grep -v "prefix" > ENV_NAME.yaml
Importing an environment mamba env create --file ENV_NAME.yaml conda env create --file ENV_NAME.yaml

conda create -n ENV_NAME --file ENV_NAME.txt

Viewing a list of your environments mamba list | grep -i <key to find>

mamba info

mamba env list

conda list | grep -i <key to find>

conda info --envs conda env list

References