Created
October 20, 2015 14:53
-
-
Save dapize/db4e97a3ed5c4859560d to your computer and use it in GitHub Desktop.
Script para instalar Java desde terminal.
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 | |
# Script de instalacion de Java por Daniel P Z | |
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" >> /etc/apt/sources.list.d/webupd8team-java.list | |
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" >> /etc/apt/sources.list.d/webupd8team-java.list | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 | |
apt-get -y install aptitude | |
aptitude -y update | |
aptitude -y install oracle-java7-installer | |
echo "ya esta, ya se instalo Java" | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment