LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-22-2019, 02:47 PM   #1
CyDFect
LQ Newbie
 
Registered: May 2019
Posts: 11

Rep: Reputation: Disabled
Using slackpkg to download from a mirror


I am trying to install Java, I have the link here, and I would like to install it the correct way (using slackpkg). How can I do this? For some reason the files I am trying to download aren't on my Slackware installation disk.
 
Old 08-22-2019, 06:42 PM   #2
Mechanikx
Member
 
Registered: Jul 2018
Distribution: Slackware
Posts: 351

Rep: Reputation: 258Reputation: 258Reputation: 258
Quote:
Originally Posted by CyDFect View Post
I am trying to install Java, I have the link here, and I would like to install it the correct way (using slackpkg). How can I do this? For some reason the files I am trying to download aren't on my Slackware installation disk.
I don't use slackpkg so I'm not sure if you can "point" it to the /extra directory. But you could just use wget?

Code:
wget -r -np -nH --cut-dirs=3 -R "index.html*" https://mirror.csclub.uwaterloo.ca/slackware/slackware-14.2/extra/java/
Just replace the mirror with your preferred one.

And just in case you haven't already, take a look at this:

Java in Slackware

Last edited by Mechanikx; 08-22-2019 at 07:09 PM.
 
Old 08-23-2019, 08:45 AM   #3
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Quote:
Originally Posted by CyDFect View Post
For some reason the files I am trying to download aren't on my Slackware installation disk.
And what version of Slackware is your installation disk?

I'm sure you can notice that the version in /extra is extremely old. It would not be advisable to install this version. As much as it is noble for you to want to attempt to install Java in the time-honoured method, I believe the time-honoured method is not suitable in this case. It may be better to install one of these versions of openjdk instead:

http://www.slackware.com/~alien/slac...openjdk/pkg64/

Requesting thread move to the Slackware forum.

Last edited by Lysander666; 08-23-2019 at 08:47 AM.
 
Old 08-23-2019, 06:30 PM   #4
Mechanikx
Member
 
Registered: Jul 2018
Distribution: Slackware
Posts: 351

Rep: Reputation: 258Reputation: 258Reputation: 258
Quote:
Originally Posted by Lysander666 View Post
And what version of Slackware is your installation disk?

I'm sure you can notice that the version in /extra is extremely old. It would not be advisable to install this version. As much as it is noble for you to want to attempt to install Java in the time-honoured method, I believe the time-honoured method is not suitable in this case. It may be better to install one of these versions of openjdk instead:

http://www.slackware.com/~alien/slac...openjdk/pkg64/

Requesting thread move to the Slackware forum.
extra/java doesn't contain the actual Java binary. Only the java.SlackBuild to repackage the binary, scripts to populate the environment, etc. You would have to download the binary from Oracle's site. FWIW I used the java.SlackBuild from extra/java to install the latest JDK: jdk-12.0.2_linux-x64_bin.tar.gz and it installed fine. I then wrote a small "hello world" program in Java, compiled it and ran it without problems.

The only thing is if the OP wants to do it this way on 32-bit, the last 32-bit version I could find on Oracle's site is EOL and requires an account to download. So, openJDK could be the better way to go.

I don't have much experience with Java besides what I wrote above, so if I missed something I apologize.
 
Old 08-23-2019, 07:13 PM   #5
CyDFect
LQ Newbie
 
Registered: May 2019
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Mechanikx View Post
extra/java doesn't contain the actual Java binary. Only the java.SlackBuild to repackage the binary, scripts to populate the environment, etc. You would have to download the binary from Oracle's site. FWIW I used the java.SlackBuild from extra/java to install the latest JDK: jdk-12.0.2_linux-x64_bin.tar.gz and it installed fine. I then wrote a small "hello world" program in Java, compiled it and ran it without problems.

The only thing is if the OP wants to do it this way on 32-bit, the last 32-bit version I could find on Oracle's site is EOL and requires an account to download. So, openJDK could be the better way to go.

I don't have much experience with Java besides what I wrote above, so if I missed something I apologize.
Whenever I try this, the script gets stuck at the line "usr/mime", I have no idea what it's doing/trying to do, but that's the last thing it outputs before it just freezes.
 
Old 08-23-2019, 08:06 PM   #6
Mechanikx
Member
 
Registered: Jul 2018
Distribution: Slackware
Posts: 351

Rep: Reputation: 258Reputation: 258Reputation: 258
Quote:
Originally Posted by CyDFect View Post
Whenever I try this, the script gets stuck at the line "usr/mime", I have no idea what it's doing/trying to do, but that's the last thing it outputs before it just freezes.
Not sure. Unfortunately, like I said above, I don't have much experience working with Java. Everything worked fine for me on a 64-bit system.

From the link you provided in your original post I'm guessing you're wanting to install JDK on 32-bit system? Did you try and install the latest JDK, the one I mentioned? That one is only for 64-bit. If you try to install that on a 32-bit system, it should install fine, but you will get a run-time error.

If you're determined to do it this way you'll have to install a 32-bit version of JDK:

jdk-8u221

But you have to sign up for an account first before you can download it.

It's probably easier to go with Lysander666's suggestion and install openJDK. When you open that link click on 'parent directory' then 'pkg' to access the 32-bit versions.
 
Old 08-23-2019, 08:16 PM   #7
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
@CyDFect

You should build your own JDK package from SlackBuilds, then you can use the standard Slackware package tools installpkg/removepkg:
http://www.slackbuilds.org/repositor...velopment/jdk/
Here's an example on how to use SlackBuilds (in case you're inexperienced):
https://www.linuxquestions.org/quest...4/#post6027334
And you can get the Oracle JDK package without registering:
https://www.linuxquestions.org/quest...ml#post6023483
 
Old 08-23-2019, 08:30 PM   #8
Mechanikx
Member
 
Registered: Jul 2018
Distribution: Slackware
Posts: 351

Rep: Reputation: 258Reputation: 258Reputation: 258
Quote:
Originally Posted by abga View Post
@CyDFect

You should build your own JDK package from SlackBuilds, then you can use the standard Slackware package tools installpkg/removepkg:
http://www.slackbuilds.org/repositor...velopment/jdk/
Here's an example on how to use SlackBuilds (in case you're inexperienced):
https://www.linuxquestions.org/quest...4/#post6027334
And you can get the Oracle JDK package without registering:
https://www.linuxquestions.org/quest...ml#post6023483
Thanks! It didn't occur to me to check if there was a workaround for the registration.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
having trouble after upgrading 14.1 slackware using slackpkg and slackpkg+ [solved] slackartist Slackware 1 12-28-2015 07:28 AM
[SOLVED] Slackpkg, Slackpkg Plus, Slackware 14.1 x86_64 install.log delay or slow to write bamunds Slackware 7 04-22-2014 11:12 AM
Building a Debian Wheezy/Ubuntu Precise Mirror using apt-mirror bennetfox Linux - Server 16 02-23-2013 03:56 PM
[SOLVED] typos in latest /etc/slackpkg/mirrors(.new) [slackpkg-2.82.0-noarch-8.tgz] wailingwailer Slackware 4 09-22-2012 04:04 AM
Slackpkg: missing something in /usr/libexec/slackpkg/functions.d/dialog-functions.sh michelino Slackware 4 03-20-2007 12:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration