Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save malzzz/15639fc36d069490b7709be2f3a4d522 to your computer and use it in GitHub Desktop.
Save malzzz/15639fc36d069490b7709be2f3a4d522 to your computer and use it in GitHub Desktop.
Install Scala 2.12.3 and SBT using apt-get on Ubuntu 16.04
## Java
sudo apt-get update
sudo apt-get install default-jdk
## Scala
sudo apt-get remove scala-library scala
sudo wget https://downloads.lightbend.com/scala/2.12.3/scala-2.12.3.deb
sudo dpkg -i scala-2.12.3.deb
sudo apt-get update
sudo apt-get install scala
## SBT
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
sudo apt-get update
sudo apt-get install sbt
@emhacker
Copy link

The last two commands

sudo apt-get update
sudo apt-get install scala

are overrunning the scala version I just installed, Redundant IMO

@ahdanmusthofa
Copy link

thanks

@Sayan3990
Copy link

Thanks
For scala installation, just skip sudo apt-get update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment