1.Find the latest version of Anaconda

Visit the Anaconda Distributions page. Go to theAnaconda Archive if you would like to view all available versions. Find the latest Linux version and copy the installer bash script.

2.Download the Anaconda using bash commands

On your server, change your directory to /tmp and download the bash script to /tmp folder.

cd /tmp
curl -O https://repo.anaconda.com/archive/Anaconda3-<2022.05>-Linux-x86_64.sh

Remember to remove the ‘<’ and ‘>’ characters on all of the commands and change the <2022.05> to the latest version.

3.Verify the integrity of the installer

sha256sum Anaconda3-<2022.05>-Linux-x86_64.sh

4.Run the installer script and complete installation

bash Anaconda3-<2022.05>-Linux-x86_64.sh

5.Use ~/.bashrc to install it to your PATH

Once installation is complete, you’ll receive the following output:

...
installation finished.
Do you wish the installer to prepend the Anaconda3 install location
to PATH in your ~/.bashrc ? [yes|no]
[no] >>>

Type yes.

6.Activate installation

source ~/.bashrc

7.Test installation

Test the installation by listing the packages.

conda list

8.After you set conda up, you will see (base) by default. In order to deactivate (base) environment from auto activating use the command below.

conda config --set auto_activate_base false