Skip to content

Instantly share code, notes, and snippets.

@gayanW
Last active May 5, 2017 16:00
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save gayanW/de4b1522fcc8e6cee2cdd94eebc5b61a to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ ! -f /etc/apt/sources.list.d/jessie-backports.list ]; then
echo "added by gayanw" > /etc/apt/sources.list.d/jessie-backports.list
echo "deb http://http.debian.net/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list
fi
# install openjdk-8
sudo apt-get update
sudo apt-get install -t jessie-backports openjdk-8-jdk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment