Skip to content

Instantly share code, notes, and snippets.

@diegopacheco
Last active May 27, 2022 10:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save diegopacheco/9ddbafcabb6b812ef69db9f9c8a28ba3 to your computer and use it in GitHub Desktop.
Save diegopacheco/9ddbafcabb6b812ef69db9f9c8a28ba3 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