LinuxQuestions.org
Visit Jeremy's Blog.
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 03-17-2013, 05:15 PM   #1
Sandlin
Member
 
Registered: Apr 2005
Location: Michigan
Distribution: Slackware 13.37, Puppy Linux, Vector Linux
Posts: 34

Rep: Reputation: 2
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?
 
Old 03-17-2013, 05:47 PM   #2
hemp4fuel
Member
 
Registered: Jun 2003
Location: Topeka, KS
Distribution: Slackware
Posts: 192

Rep: Reputation: 45
How was it installed? A slackware package? If so 'removepkg name-of-package', for example 'removepkg jre'.
 
Old 03-17-2013, 06:37 PM   #3
gabytf
Member
 
Registered: Jun 2010
Location: Kota Kinabalu, Sabah, Malaysia
Distribution: Slackware64 14, -current
Posts: 163

Rep: Reputation: 1
or "pkgtool", select "Remove", then check/select the java you want to uninstall.

Last edited by gabytf; 03-17-2013 at 06:57 PM.
 
Old 03-17-2013, 07:20 PM   #4
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,427

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
Or use upgradepkg.
 
Old 03-17-2013, 07:29 PM   #5
Sandlin
Member
 
Registered: Apr 2005
Location: Michigan
Distribution: Slackware 13.37, Puppy Linux, Vector Linux
Posts: 34

Original Poster
Rep: Reputation: 2
How installed?

Quote:
Originally Posted by hemp4fuel View Post
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?
 
Old 03-17-2013, 08:37 PM   #6
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,379

Rep: Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824
This is the procedure for installing java from your download. http://docs.slackware.com/howtos:software:java
 
Old 03-17-2013, 09:41 PM   #7
chrisretusn
Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware
Posts: 467

Rep: Reputation: Disabled
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
Or follow that link allend posted
 
Old 03-18-2013, 07:05 PM   #8
Sandlin
Member
 
Registered: Apr 2005
Location: Michigan
Distribution: Slackware 13.37, Puppy Linux, Vector Linux
Posts: 34

Original Poster
Rep: Reputation: 2
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 View Post
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
Or follow that link allend posted
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
networkmanager does not start after installing newer version rabbit2345 Linux - Networking 0 05-29-2011 03:34 AM
installing a newer version of python arnon Linux - Software 3 01-04-2007 01:17 PM
Installing Newer Version raffytaffy Suse/Novell 3 04-22-2006 02:57 PM
Installing newer version of php (apt-get) waffe Debian 11 06-09-2004 05:17 PM
installing newer version of programs ziggie216 Linux - Software 2 04-14-2004 03:34 PM


All times are GMT -5. The time now is 08:30 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration