From d6d88567587535fa57c00c9f1e397b786ae362f4 Mon Sep 17 00:00:00 2001 From: Mark Harfouche Date: Mon, 5 Jul 2021 11:32:50 -0400 Subject: [PATCH 1/2] Add uninstallation instructions for Unix --- README.md | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 86881f2a..f9e7f794 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,37 @@ or wget https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh bash Mambaforge-$(uname)-$(uname -m).sh +#### Uninstallation + +Uninstalling Miniforge means removing the files that were created during the installation process. +You will typically want to remove: + +1. Any modifications to your shell rc files that were made by Miniforge: + +```bash +# Use this first command to see what rc files will be updated +conda init --reverse --dry-run +# Use this next command to take action on the rc files listed above +conda init --reverse +``` + +2. Remove the folder and all subfolders where the base environment (Miniforge) was installed: + +```bash +CONDA_BASE_ENVIRONMENT=$(conda info --base) +echo The next command will delete all files in ${CONDA_BASE_ENVIRONMENT} +# Warning, the rm command below is irreversible! +# check the output of the echo command above +# To make sure you are deleting the correct directory +rm -rf ${CONDA_BASE_ENVIRONMENT} +``` +3. Any global conda configuration files that are left behind. + +```bash +echo ${HOME}/.condarc will be removed if it exists +rm -f ${HOME}/.condarc +``` + ### Windows Download the installer and double click it on the file browser. @@ -139,7 +170,7 @@ After construction on the CI, the installer is tested against a range of distrib - Ubuntu 19.10 - Ubuntu 20.04 -## Usage +## Local usage Installers are built and uploaded via the CI but if you want to construct your own Miniforge installer, here is how: From ab96dbf5140cfa13bc6c787964c2b7107e76fbd3 Mon Sep 17 00:00:00 2001 From: Mark Harfouche Date: Mon, 5 Jul 2021 12:35:08 -0400 Subject: [PATCH 2/2] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f9e7f794..502c24dc 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ conda init --reverse --dry-run conda init --reverse ``` -2. Remove the folder and all subfolders where the base environment (Miniforge) was installed: +2. Remove the folder and all subfolders where the base environment for Miniforge was installed: ```bash CONDA_BASE_ENVIRONMENT=$(conda info --base) @@ -104,6 +104,7 @@ echo The next command will delete all files in ${CONDA_BASE_ENVIRONMENT} # To make sure you are deleting the correct directory rm -rf ${CONDA_BASE_ENVIRONMENT} ``` + 3. Any global conda configuration files that are left behind. ```bash