Installing from a universal package
Download or package and expand it.
Ubuntu and other Debian-based distributions
package is officially supported by sbt.
Ubuntu and other Debian-based distributions use the DEB format, but usually you don’t install your software from a local DEB file. Instead they come with package managers both for the command line (e.g. apt-get
, aptitude
) or with a graphical user interface (e.g. Synaptic). Run the following from the terminal to install sbt
(You’ll need superuser privileges to do so, hence the sudo
).
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.listsudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823sudo apt-get updatesudo apt-get install sbt
Package managers will check a number of configured repositories for packages to offer for installation. sbt binaries are published to Bintray, and conveniently Bintray provides an APT repository. You just have to add the repository to the places your package manager will check.
Once sbt
is installed, you’ll be able to manage the package in aptitude
or Synaptic after you updated their package cache. You should also be able to see the added repository at the bottom of the list in System Settings -> Software & Updates -> Other Software:
Red Hat Enterprise Linux and other RPM-based distributions
package is officially supported by sbt.
Red Hat Enterprise Linux and other RPM-based distributions use the RPM format. Run the following from the terminal to install sbt
(You’ll need superuser privileges to do so, hence the sudo
).
curl https://bintray.com/sbt/rpm/rpm | sudo tee /etc/yum.repos.d/bintray-sbt-rpm.reposudo yum install sbt
sbt binaries are published to Bintray, and conveniently Bintray provides an RPM repository. You just have to add the repository to the places your package manager will check.
Note: Please report any issues with these to theproject.
Gentoo
In the official tree there is no ebuild for sbt. But there are to merge sbt from binaries. To merge sbt from this ebuilds you can do:
mkdir -p /usr/local/portage && cd /usr/local/portagegit clone git://github.com/whiter4bbit/overlays.gitecho "PORTDIR_OVERLAY=$PORTDIR_OVERLAY /usr/local/portage/overlays" >> /etc/make.confemerge sbt-bin
Note: Please report any issues with the ebuild.
Typesafe Activator
See the .
Installing manually
See .
Next Page >
Contents
-
Installing sbt on Linux
原文: