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.

Introduction to Linux - A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

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?

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?

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

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