Red Hat Enterprise Linux and other RPM-based distributions use the RPM format.
RPM package is officially supported by sbt. Red Hat Enterprise Linux and other RPM-based distributions Note: sudo apt-key adv -keyserver hkps://:443 -recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823 may not work on Ubuntu Bionic LTS (18.04) since it’s using a buggy GnuPG, so we are advising to use web API to download the public key in the above. According to it is fixed in Ubuntu Cosmic (18.10), but Ubuntu Bionic LTS (18.04) is still waiting for a release. Note: There have been reports about SSL error using Ubuntu: Server access Error: : Unexpected error: : the trustAnchors parameter must be non-empty url=, which apparently stems from OpenJDK 9 using PKCS12 format for /etc/ssl/certs/java/cacerts cert-bug.
You should also be able to see the added repository at the bottom of the list in System Settings -> Software & Updates -> Other Software: Once sbt is installed, you’ll be able to manage the package in aptitude or Synaptic after you updated their package cache. You just have to add the repository to the places your package manager will check. Package managers will check a number of configured repositories for packages to offer for installation. Sudo chmod 644 /etc/apt//scalasbt-release.gpg
Sudo apt-get install apt-transport-https curl gnupg -yqqĮcho "deb all main" | sudo tee /etc/apt//sbt.listĮcho "deb /" | sudo tee /etc/apt//sbt_old.listĬurl -sL "" | sudo -H gpg -no-default-keyring -keyring gnupg-ring:/etc/apt//scalasbt-release.gpg -import Run the following from the terminal to install sbt (You’ll need superuser privileges to do so, hence the sudo). apt-get, aptitude) or with a graphical user interface (e.g. Instead they come with package managers both for the command line (e.g. Ubuntu and other Debian-based distributions use the DEB format, but usually you don’t install your software from a local DEB file. Ubuntu and other Debian-based distributionsĭEB package is officially supported by sbt. Redhat family calls it java-1.8.0-openjdk-devel.ĭownload ZIP or TGZ package and expand it. For example, Ubuntu xenial (16.04LTS) has openjdk-8-jdk. The details around the package names differ from one distribution to another. We recommend AdoptOpenJDK JDK 8 or JDK 11. (DEB and RPM packages do not to save bandwidth) It will install tgz packaging of sbt that contains all JAR files. It will install the official packaging by AdoptOpenJDK, as opposed to the “mystery meat OpenJDK builds“.Ģ.
$ sdk install java $(sdk list java | grep -o "8\.*\.*\.hs-adpt" | head -1)ġ. To install both JDK and sbt, consider using SDKMAN. Installing sbt on Linux Installing from SDKMAN