Last active
May 5, 2017 16:00
-
-
Save gayanW/de4b1522fcc8e6cee2cdd94eebc5b61a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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