How To Install Anaconda on AlmaLinux 8

Install Anaconda on AlmaLinux 8

In this tutorial, we will show you how to install Anaconda on AlmaLinux 8. For those of you who didn’t know, Anaconda is an open-source package manager and distribution of Python. It is designed for machine learning and data science and comprises several open-source packages. Anaconda can be installed on all popular operating systems including Windows, Linux, and macOS.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the Anaconda Python on AlmaLinux 8. You can follow the same instructions for Fedora, RHEL, CentOS, and Rocky Linux distributions.

Prerequisites

  • A server running one of the following operating systems: AlmaLinux 8.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • A non-root sudo useror access to the root user. We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.

Install Anaconda on AlmaLinux 8

Step 1. First, let’s start by ensuring your system is up-to-date.

sudo dnf clean all
sudo dnf update

Step 2. Install Required Dependencies.

Now we install some packages required to install Anaconda Python using the following command below:

sudo dnf install libXi libXtst libXrandr libXcursor alsa-lib mesa-libEGL libXcomposite libXScrnSaver libXdamage mesa-libGL

Step 3. Installing Anaconda on AlmaLinux 8.

By default, Anaconda is not available on the AlmaLinux 8 base repository. Now we run the following command to download the latest Anaconda installation script from the official page:

wget https://repo.anaconda.com/archive/Anaconda3-2021.11-Linux-x86_64.sh

Next, verify the integrity of the installer file using the following command:

sha256sum Anaconda3-2021.11-Linux-x86_64.sh

Result:

fedf9e340039557f7b5e8a8a86affa9d299f5e9820144bd7b92ae9f7ee08ac60  Anaconda3-2021.11-Linux-x86_64.sh

You can compare this with the hashes on the Anaconda hashes web page. If the codes match, that means the software is authentic and ready to be used.

Finally, run the downloaded bash script file as follows:

bash Anaconda3-2021.11-Linux-x86_64.sh

During installation, you will be asked to answer a few questions. Follow the wizard instructions to complete the Anaconda installation process.

When your installation is completed you will get the following output:

Thank you for installing Anaconda3!

===========================================================================

Working with Python and Jupyter notebooks is a breeze with PyCharm Pro,
designed to be used with Anaconda. Download now and have the best data
tools at your fingertips.

PyCharm Pro for Anaconda is available at: https://www.anaconda.com/pycharm

Now, run the following command to activate the Anaconda:

source .bashrc

To verify the installation of Anaconda using the conda, type the command below in Terminal:

conda info

Output:

active environment : base
    active env location : /root/anaconda3
            shell level : 1
       user config file : /root/.condarc
 populated config files : 
          conda version : 4.10.3
    conda-build version : 3.21.5
         python version : 3.9.7.final.0
       virtual packages : __linux=4.18.0=0
                          __glibc=2.28=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /root/anaconda3  (writable)
      conda av data dir : /root/anaconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /root/anaconda3/pkgs
                          /root/.conda/pkgs
       envs directories : /root/anaconda3/envs
                          /root/.conda/envs
               platform : linux-64
             user-agent : conda/4.10.3 requests/2.26.0 CPython/3.9.7 Linux/4.18.0-348.12.2.el8_5.x86_64 rocky/8.5 glibc/2.28
                UID:GID : 0:0
             netrc file : None
           offline mode : False

You can also list all packages included in the Anaconda repository using the following command:

conda list

Then, use the following command to update Anaconda on AlmaLinux 8:

conda update conda

Congratulations! You have successfully installed Anaconda. Thanks for using this tutorial for installing the Anaconda Python on your AlmaLinux 8 system. For additional help or useful information, we recommend you check the official Anaconda website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!