Skip to content

Instantly share code, notes, and snippets.

@angelotrivelli
Last active January 20, 2018 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelotrivelli/5d6f50b5de0b16e2f32edfe9624fccdb to your computer and use it in GitHub Desktop.
Save angelotrivelli/5d6f50b5de0b16e2f32edfe9624fccdb to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
set -x
java -version
yes | sudo yum install -y java-1.8.0-openjdk-devel
sudo /usr/sbin/alternatives --set java /usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/java
sudo /usr/sbin/alternatives --set javac /usr/lib/jvm/java-1.8.0-openjdk.x86_64/bin/javac
yes | sudo yum remove java-1.7.0-openjdk
java -version
wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
sudo mv lein /usr/bin/
chmod a+x /usr/bin/lein
lein
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment