Installing Anaconda
Step 01. To download the Anaconda installation, change the directory to /tmp (Or you can download where ever you want)
cd /tmpStep 02. To download the Anaconda installation script execute the following command
curl -O https://repo.anaconda.com/archive/Anaconda3–2019.10-Linux-x86_64.shTo get the latest installation script visit to this site: https://repo.anaconda.com/archive/
Step 03. Run the downloaded installation script
$ bash Anaconda3–2019.10-Linux-x86_64.sh and Press ENTER to continue
Step 04. Type ‘Yes’ and Press Enter to accept the license and then press Enter to confirm the installation location or you can change the location by pressing Ctrl + C
Step 05. To activate Anaconda installation to load the new PATH environment variable which was added by the Anaconda installer into the current shell session with this command $ source ~/.bashrc
Step 06. To verify your installation execute the following command
$ conda info
Updating Anaconda
Step 01. Execute the following command to update your installed conda when prompt in confirming type ‘y’ and press Enter.
$ conda update condaStep 02. Like We did above, now to update Anaconda execute the following command, $ conda update anaconda
Uninstalling Anaconda
In two ways We can remove anaconda from our ubuntu machine.
Option 01.
Step 01. Remove anaconda directory from the root.
$ rm -rf ~/anaconda3Step 02. Remove the PATH environment variable settings from .bash_profile
Option 02.
To uninstall Anaconda, Anaconda providing us with some services. Let's look at those steps on how to successfully uninstall.
Step 01. Install Anaconda cleaning package
$ conda install anaconda-cleanStep 02. To remove all Anaconda related files and directories with a confirmation prompt, $ anaconda-clean
Step 03. If you want to remove all relevant files & directories without prompting any confirmation use following code, $ anaconda-clean — yes
References
01. https://docs.anaconda.com/anaconda
02. https://repo.anaconda.com/archive/