Skip to content

Instantly share code, notes, and snippets.

@kumar-de
Last active April 19, 2020 21:01
Show Gist options
  • Save kumar-de/60813625649b66e6b3d347bd7a370209 to your computer and use it in GitHub Desktop.
Save kumar-de/60813625649b66e6b3d347bd7a370209 to your computer and use it in GitHub Desktop.
Hassle-free installation of scala-REPL on Ubuntu 18.04 LTS. This hasn't been tested on other versions. #scala #deb #freeze #hold

Remove existing version, if any

sudo apt-get remove scala-library scala

Change version, if necessary: e.g. 2.11.12

sudo wget www.scala-lang.org/files/archive/scala-2.11.8.deb

Install the .deb file

sudo dpkg -i scala-2.11.8.deb

Hold installed package from system-update

# sudo apt-mark hold <package-name>
sudo apt-mark hold scala

Show all packages on hold

sudo apt-mark showhold

Remove the hold

# sudo apt-mark unhold <package-name>
sudo apt-mark unhold scala
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment