[Slackbuilds-users] sboinstall - jdk download fails
eric.b.pratt at gmail.com
Tue Apr 4 17:17:13 UTC 2017
On Tue, Apr 4, 2017 at 7:33 AM, Evandro Alves <evandrofisico at gmail.com>
> It has always been like this. The oracle website does not allow a direct
> download through wget, to force people to accept their licence agreement.
On Tue, Apr 4, 2017 at 7:37 AM, Edward Koenig <kingbeowulf at gmail.com> wrote:
> Yes, old news discussed some time ago here. Some download sites require
> extra steps and therefore you can't use wget, curl or any SBo inspired
> automated tool. Nothing any of us can do; you will have to yell at Oracle.
On Tue, Apr 4, 2017 at 9:07 AM, Matteo Bernardini <
matteo.bernardini at gmail.com> wrote:
> Hi Fellype,
> it's written in the README
> remember it's assumed that you have read the READMEs of the things you
> build from SBo, also if you use some third party automated tool with
> the SBo's repository.
You can definitely download JDK via wget.
I have a script that
discovers the latest JDK, downloads it,
java.Slackbuild in /extra to build a package, and installs it. This is my
wget command to download the latest JAVA once the script has located the
wget -q --no-check-certificate --no-cookies --header "Cookie:
This works as long as you find the actual download URL
not a URL that redirects to the
I found this by using HttpFox on Firefox to see what was happening when
I clicked through the website and downloaded via a browser. It's important
to understand that you are still accepting the license agreement by using
wget to download it.
I suspect Slackbuilds is against this practice for a number of reasons,
especially the possibly too magical discovery of URLs via text parsing of
HTML. But it's something to consider. Another idea might be an optional
WGET_OPTIONS="" field in the jdk.info file. That would tell automated
tools like sbopkg what extra command line options are needed to download
from the URL given in jdk.info.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SlackBuilds-users