[Slackbuilds-users] sboinstall - jdk download fails

Eric Pratt 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>
wrote:

> Fellype,
>
> 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.
>
> -Ed

​
​​
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
>
> https://slackbuilds.org/repository/14.2/development/jdk/
>
> 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.
>
> Matteo
>
​
​You can definitely download JDK via wget.  ​
I have a script that
​
discovers the latest JDK, downloads it,
​uses
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
proper URL:

  wget -q --no-check-certificate --no-cookies --header "Cookie:
oraclelicense=accept-securebackup-cookie" "${JAVA_DOWNLOAD_URL}"

This works as long as you find the actual download URL
​ and​
not a URL that redirects to the
​actual ​
download
​ URL​
.
​  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.
​
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20170404/5fee8357/attachment.html>


More information about the SlackBuilds-users mailing list