Skip to content

Instantly share code, notes, and snippets.

@antoni
Forked from diegopacheco/sbt-centos.md
Created May 27, 2022 10:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antoni/f876b8bb9be7f90983c799e980524569 to your computer and use it in GitHub Desktop.
Save antoni/f876b8bb9be7f90983c799e980524569 to your computer and use it in GitHub Desktop.
Install Scala SBT on Amazon Linux | CentOS

Setup proxy

export https_proxy="https://my-proxy.com:443"
export http_proxy="https://my-proxy.com:80"

sudo vim /etc/yum.conf

add proxy on first line proxy=https://my-proxy.com:80

[main]
proxy=https://my-proxy.com:80
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
...

Install

sudo rm -f /etc/yum.repos.d/bintray-rpm.repo
curl -L https://www.scala-sbt.org/sbt-rpm.repo > sbt-rpm.repo
sudo mv sbt-rpm.repo /etc/yum.repos.d/
sudo yum install sbt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment