SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware 13.37, Puppy Linux, Vector Linux
Posts: 34
Rep:
Unistall Java before installing newer version
I have Java currently disabled on Slackware 13.37 and would like to install the newer version. But, first I need to uninstall the old version and can't find an explanation of how to do that. Would someone please explain clearly now to uninstall the old version?
Distribution: Slackware 13.37, Puppy Linux, Vector Linux
Posts: 34
Original Poster
Rep:
How installed?
Quote:
Originally Posted by hemp4fuel
How was it installed? A slackware package? If so 'removepkg name-of-package', for example 'removepkg jre'.
Hemp4fuel,
This was installed when I installed Slackware 13.37 from the installation disc. Then, it was disabled because it was such a mess, had so many security flaws. I just downloaded jre-7u17-linux-i586.tar.gz from the Java website. It tells me how to install it and says that first you must uninstall the current version, but only gives instructions for removing an RPM package but no other package. So, it was installed with the OS, so I don't know how it was installed.
If I use removepkg, which one do I remove? Is it
/usr/lib/mozilla/plugins/libnpjp.so, or /usr/lib/java/plugin/, or both?
How did you disable it? Just in the browser perhaps?
Code:
java -version
Will give you version information, unless it is already removed.
If it was installed when you installed Slackware 13.37 then:
Code:
removepkg jre
should remove it. If that returns
Code:
ls: cannot access /var/log/packages/jre*: No such file or directory
No such package: /var/log/packages/jre. Can't remove.
Then it's probably not installed. At least not the Slackware way.
Now what to do about that file you downloaded. You need to get the Slackbuild in Extra from a Slackware 14 mirror, then build the java package. Here is an example on how to do that.
From your home directory:
Code:
# make a directory to do the work
mkdir ~/sunjava
# change to it
cd ~/sunjava/
# download the files you will need in one shot
lftp -c "open http://mirrors.slackware.com/slackware/slackware-14.0/extra/java/; mirror -X *.mirrorlist"
# move jre-7u17-linux-i586.tar.gz in to the sunjava directory
# once that is done you are ready to build the package
# change to root
su -
# cd back
cd /home/<yourhome>/sunjava/
# Then build the java package
sh java.Slackbuild
## After a few minutes your will see Slackware package /tmp/jre-7u17-i586-1.txz created.
# next install it
upgradepkg --install-new /tmp/jre-7u17-i586-1.txz
# That's it
Distribution: Slackware 13.37, Puppy Linux, Vector Linux
Posts: 34
Original Poster
Rep:
Reply:
Yes, I disabled Java in the browser. The old version is 1.6.0-25.
I'll follow the below directions and report back.
Quote:
Originally Posted by chrisretusn
How did you disable it? Just in the browser perhaps?
Code:
java -version
Will give you version information, unless it is already removed.
If it was installed when you installed Slackware 13.37 then:
Code:
removepkg jre
should remove it. If that returns
Code:
ls: cannot access /var/log/packages/jre*: No such file or directory
No such package: /var/log/packages/jre. Can't remove.
Then it's probably not installed. At least not the Slackware way.
Now what to do about that file you downloaded. You need to get the Slackbuild in Extra from a Slackware 14 mirror, then build the java package. Here is an example on how to do that.
From your home directory:
Code:
# make a directory to do the work
mkdir ~/sunjava
# change to it
cd ~/sunjava/
# download the files you will need in one shot
lftp -c "open http://mirrors.slackware.com/slackware/slackware-14.0/extra/java/; mirror -X *.mirrorlist"
# move jre-7u17-linux-i586.tar.gz in to the sunjava directory
# once that is done you are ready to build the package
# change to root
su -
# cd back
cd /home/<yourhome>/sunjava/
# Then build the java package
sh java.Slackbuild
## After a few minutes your will see Slackware package /tmp/jre-7u17-i586-1.txz created.
# next install it
upgradepkg --install-new /tmp/jre-7u17-i586-1.txz
# That's it
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.