I'd like to install Typesafe Stack to Ubuntu Server via their Deb repo, but without downloading all the OpenJDK packages. I have Oracle JDK 6 installed and in my PATH via update-alternatives and installing OpenJDK breaks some stuff.
What would be the best way to do this? It doesn't appear that I can use apt-get --no-install-recommends flag for this:
$> sudo apt-get install --no-install-recommends typesafe-stack sbt
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
ca-certificates-java default-jre default-jre-headless g8 java-common libaccess-bridge-java libaccess-bridge-java-jni openjdk-6-jre
openjdk-6-jre-headless openjdk-6-jre-lib
Suggested packages:
equivs icedtea-plugin sun-java6-fonts ttf-sazanami-gothic ttf-kochi-gothic ttf-sazanami-mincho ttf-kochi-mincho ttf-telugu-fonts ttf-oriya-fonts
ttf-kannada-fonts ttf-bengali-fonts
Recommended packages:
icedtea-netx icedtea-6-jre-cacao icedtea-6-jre-jamvm
The following NEW packages will be installed:
ca-certificates-java default-jre default-jre-headless g8 java-common libaccess-bridge-java libaccess-bridge-java-jni openjdk-6-jre
openjdk-6-jre-headless openjdk-6-jre-lib sbt typesafe-stack
0 upgraded, 12 newly installed, 0 to remove and 7 not upgraded.
Need to get 33.0 MB of archives.
After this operation, 86.9 MB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.
PS - I know the Typesafe Stack components work with my current setup, since I had it installed and running fine with their prior installer.
Old question, has been answered for a long time now in my comments under my OP, just making it official now. On Debian-based systems just use Debian Alternatives, see setup scripts in my comments above. It's brilliant, just works, and provides the following benefits:
update-alternatives --config
. Same with Java, Scala, or any other sdk/platform.update-alternatives --config
.update-alternatives --remove-all
(script included), and rm -rf /opt/haskell
.