$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

How to Install Scala on CentOS Linux – Step-by-step

October 11, 2023 | By the+gnu+linux+evangelist.

How to Install

  1. 2. Installing Dependencies

    Then to Install Required Software
    Run:

    sudo dnf install curl gnupg2

    Authenticate with the User Admin Pass.
    If Got “User is Not in Sudoers file” then see: How to Enable sudo.

  2. 3. Installing Scala

    Then to Install Scala on CentOS
    Simply run:

    curl -fL "https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-linux.gz" | gzip -d > cs

    In a little while the Setup is achieved.
    Amend the User’Path with:

    echo "export PATH=$PATH:$HOME/.local/share/coursier/bin" >> ~/.bashrc

    Now to reload it:

    bash

    Last, Check the Scala Installation:

    scala -version
    Terminal output
  3. 4. Installing Sbt

    How to Install Scala Build Tool on CentOS

    Sbt CentOS Setup Guide

Contents