GNU/Linux Debian Adding Sbt Repo Guide
Hi! The Tutorial shows you Step-by-Step How to Add Scala Build Tool Repository in Debian-Based GNU/Linux OSes.
And Sbt is Built Tool for Scala and Java projects. It is the build tool of choice for 93.6% of the Scala Developers (2019).
One of the examples of sbt Scala-specific Feature is the ability to cross build your Project against multiple Scala Versions.
Last, this Repo Setup is Valid for All the Debian-based Platforms like:
- Kali
- MX Linux
- Deepin
- Parrot
- antiX
- SparkyLinux
- Q4OS
- Vanilla OS
- Netrunner
- Voyager Debian
- MakuluLinux
- Elive
- LMDE
- Parsix (You may just need to Discover what’s the Parent Release)
1. Launching Terminal
How to QuickStart with Command Line on Debian:
2. Installing Dependencies
Then to Install Required Software
Run:sudo apt install apt-transport-https curl gnupg -yqq
Authenticate with the User Admin Pass.
If Got “User is Not in Sudoers file” then see: How to Enable sudo.3. Adding Sbt GPG Key
Again to Add Sbt GPG Signature Key
Do:curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo -H gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/scalasbt-release.gpg --import
And again to fix Permissions:sudo chmod 644 /etc/apt/trusted.gpg.d/scalasbt-release.gpg
4. Adding Sbt Repo
Then to Add Sbt Repository for Debian
Execute:echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list
Next again:echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list
For further Insight see the Official Documentation.
5. Refreshing Debian Sources
Next to Refresh Debian Apt Repo Sources
Needed for most Debian derivatives:sudo apt update
6. Sbt Getting Started
Finally, to Quick Start Sbt for Debian