http://www.scala-sbt.org/0.13/docs/zh-cn/Installing-sbt-on-Linux.html
[root@hadoop1 target]# curl https://bintray.com/sbt/rpm/rpm > bintray-sbt-rpm.repo
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 160 0 160 0 0 160 0 --:--:-- 0:00:01 --:--:-- 103
[root@hadoop1 target]# mv bintray-sbt-rpm.repo /etc/yum.repos.d/
[root@hadoop1 target]# yum install sbt
已加载插件:fastestmirror
bintray--sbt-rpm | 1.3 kB 00:00:00
bintray--sbt-rpm/primary | 2.9 kB 00:00:05
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
bintray--sbt-rpm 22/22
正在解决依赖关系
--> 正在检查事务
---> 软件包 sbt.noarch.0.1.0.3-0 将被 安装
--> 解决依赖关系完成
依赖关系解决
====================================================================================================================================================
Package 架构 版本 源 大小
====================================================================================================================================================
正在安装:
sbt noarch 1.0.3-0 bintray--sbt-rpm 1.0 M
事务概要
====================================================================================================================================================
安装 1 软件包
总下载量:1.0 M
安装大小:1.2 M
Is this ok [y/d/N]: y
Downloading packages:
sbt-1.0.3.rpm | 1.0 MB 00:00:05
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : sbt-1.0.3-0.noarch 1/1
验证中 : sbt-1.0.3-0.noarch 1/1
已安装:
sbt.noarch 0:1.0.3-0
完毕!
[root@hadoop1 target]#