flexiondotorg / oab-java6

Create a local 'apt' repository for Sun Java 6 and/or Oracle Java 7 packages.
Other
625 stars 171 forks source link

OAB-Java

oab-java.sh v0.3.0 - Create a local 'apt' repository for Sun Java 6 and/or Oracle Java 7 packages.

Copyright (c) Martin Wimpress, http://flexion.org. MIT License

By running this script to download Java you acknowledge that you have read and accepted the terms of the Oracle end user license agreement.

Donate

If you or your organisation has found oab-java.sh useful please consider donating to this project. It is nice to have the effort I've put into this script recognised, I don't ask for much, it is at your discretion.

Donate to OAB-Java Flattr OAB-Java

Usage

sudo ./oab-java.sh

Optional parameters

How do I download and run this thing?

Like this.

cd ~/
wget https://github.com/flexiondotorg/oab-java6/raw/0.3.0/oab-java.sh -O oab-java.sh
chmod +x oab-java.sh
sudo ./oab-java.sh

If you are behind a proxy you may need to run using:

sudo -i ./oab-java.sh

If you want to see what this script is doing while it is running then execute the following from another shell:

tail -f ./oab-java.sh.log

How it works

This script is merely a wrapper for the most excellent Debian packaging scripts prepared by Janusz Dziemidowicz.

The basic execution steps are:

What gets installed?

This script will no longer try and directly install or upgrade any Java packages, instead a local apt repository is created that hosts locally built Java packages applicable to your system. It is up to you to install or upgrade the Java packages you require using apt-get, aptitude or synaptic, etc. For example, once this script has been run you can simply install the JRE by executing the following from a shell.

sudo apt-get install sun-java6-jre

Or if you ran the script with the -7 option.

sudo apt-get install oracle-java7-jre

If you already have the "official" Ubuntu packages installed then you can upgrade by executing the following from a shell.

sudo apt-get upgrade

The local apt repository is just that, local. It is not accessible remotely and oab-java.sh will never enable that capability to ensure compliance with Oracle's asinine license requirements.

By default, the script creates a temporary GPG keyring in the working directory. In order to use the current user's GPG chain instead, specify the key ID of an existing secret key. Run gpg -K to list available keys.

Known Issues

What is 'oab'?

Because, O.A.B! ;-)

History

0.3.0

0.2.9

0.2.8

0.2.7

0.2.6

0.2.5

0.2.4

0.2.3

0.2.2

0.2.1

0.2.0

0.1.9

0.1.8

0.1.7

0.1.6

0.1.5

0.1.4

0.1.3

0.1.2

0.1.1

0.1.0

Credits

This package is written and maintained by Martin Wimpress, code@flexion.org

Other contributors, listed alphabetically, are:

Many thanks for all contributions!

Todo

License

Copyright (c) 2013 Martin Wimpress, http://flexion.org/

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.