RHEL BasedRocky LinuxTutorials

How To Install Anaconda on Rocky Linux 8

Install Anaconda on Rocky Linux 8

In this tutorial, we will show you how to install Anaconda on Rocky Linux 8. For those of you who didn’t know, Anaconda is a free and open-source package manager for Python. It provides a large variety of packages and is designed for machine learning and data analysis/scientific projects. Anaconda is available in four editions namely individual (open source) edition, commercial edition, team edition, and enterprise edition. Anaconda individual edition is the world’s most popular Python distribution platform with over 20 million users worldwide.

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 Anaconda on Rocky Linux. 8.

Prerequisites

  • A server running one of the following operating systems:  Rocky Linux 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 user or 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 Rocky Linux 8

Step 1. The first step is to update your system to the latest version of the package list. To do so, run the following commands:

sudo dnf check-update
sudo dnf update

Step 2. Installing Required Dependencies.

Now we install all those packages by running the following command:

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

Step 3. Installing Anaconda on Rocky Linux 8.

By default, Anaconda is not available on Rocky Linux 8 base repository. Now we add download the latest version of the Anaconda installer script from the official website:

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

Once the installer script is downloaded, verify the integrity of the installer file using the following command below:

sha256sum Anaconda3-2021.11-Linux-x86_64.sh

Now check its output to the hashes available at Anaconda installer file hashes for your installer file version. If the output does not match, it means the file was either not downloaded entirely or corrupted. If the output matches, move on to the next step.

Now run the downloaded script to install Anaconda on your system:

bash Anaconda3-2021.11-Linux-x86_64.sh

During the installation, you will be asked to accept the license terms and press the enter key to start the installation.

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

After that, run the following command to activate the Anaconda:

source .bashrc

Step 4. Verify Anaconda installation.

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

conda info

You should see the following output:

     active environment : base
    active env location : /idroot/anaconda3
            shell level : 1
       user config file : /idroot/.condarc
 populated config files : 
          conda version : 4.10.4
    conda-build version : 3.21.5
         python version : 3.9.8.final.0
       virtual packages : __linux=4.18.0=0
                          __glibc=2.28=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /idroot/anaconda3  (writable)
      conda av data dir : /idroot/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 : /idroot/anaconda3/pkgs
                          /idroot/.conda/pkgs
       envs directories : /idroot/anaconda3/envs
                          /idroot/.conda/envs
               platform : linux-64
             user-agent : conda/4.10.4 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

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

anaconda-navigator

Congratulations! You have successfully installed Anaconda. Thanks for using this tutorial for installing Anaconda on your Rocky Linux 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!

r00t

r00t is an experienced Linux enthusiast and technical writer with a passion for open-source software. With years of hands-on experience in various Linux distributions, r00t has developed a deep understanding of the Linux ecosystem and its powerful tools. He holds certifications in SCE and has contributed to several open-source projects. r00t is dedicated to sharing her knowledge and expertise through well-researched and informative articles, helping others navigate the world of Linux with confidence.
Back to top button