LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-08-2003, 08:57 PM   #1
twcinpa
LQ Newbie
 
Registered: May 2003
Posts: 26

Rep: Reputation: 15
java uninstall


I'm trying to uninstall java. Using the following I seem to have a problem with j2re-1.4.2_02-fcs. It seems I cannot install java since it's already installed, but I can't uninstall it either.



[root@localhost java]# rpm -Uvh j2re*
Preparing... ########################################### [100%]
package j2re-1.4.2_02-fcs is already installed
[root@localhost java]# whereis j2re-1.4.2_02-fcs
j2re-1.4:
[root@localhost java]# locate j2re-1.4.2_02-fcs
[root@localhost java]# rpm -e j2re*
error: package j2re-1_4_2_02-linux-i586.rpm is not installed
[root@localhost java]#
 
Old 12-08-2003, 09:49 PM   #2
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
try rpm -e j2re-1.4.2_02-fcs

your shell is interpreting * as wild card, and maybe the one installed is not exactly same one

but then if it's installed why r u uninstalling
 
Old 12-08-2003, 10:39 PM   #3
twcinpa
LQ Newbie
 
Registered: May 2003
Posts: 26

Original Poster
Rep: Reputation: 15
I'm trying to uninstall because it's not working. I replaced the * with the complete file names.

[root@localhost java]# ls
j2re-1_4_2_02-linux-i586.rpm
[root@localhost java]# rpm -e j2re-1_4_2_02-linux-i586.rpm
error: package j2re-1_4_2_02-linux-i586.rpm is not installed
[root@localhost java]# rpm -Uvh j2re-1_4_2_02-linux-i586.rpm
Preparing... ########################################### [100%]
package j2re-1.4.2_02-fcs is already installed
[root@localhost java]# rpm -e j2re-1_4_2_02-linux-i586.rpm
error: package j2re-1_4_2_02-linux-i586.rpm is not installed
[root@localhost java]#
 
Old 12-09-2003, 12:00 AM   #4
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
try rpm -e j2re-1.4.2_02-fcs

not with -linux.rpm at the end.
 
Old 12-09-2003, 12:33 AM   #5
twcinpa
LQ Newbie
 
Registered: May 2003
Posts: 26

Original Poster
Rep: Reputation: 15
OK, here it is:

[root@localhost java]# rpm -e j2re-1.4.2_02-fcs
touch: creating `/usr/java/j2re1.4.2_02/lib/rt.pack': No such file or directory
touch: creating `/usr/java/j2re1.4.2_02/lib/jsse.pack': No such file or directory
touch: creating `/usr/java/j2re1.4.2_02/lib/charsets.pack': No such file or directory
touch: creating `/usr/java/j2re1.4.2_02/lib/ext/localedata.pack': No such file or directory
touch: creating `/usr/java/j2re1.4.2_02/lib/plugin.pack': No such file or directory
touch: creating `/usr/java/j2re1.4.2_02/javaws/javaws.pack': No such file or directory
touch: creating `/usr/java/j2re1.4.2_02/lib/unpack': No such file or directory
error: %preun(j2re-1.4.2_02-fcs) scriptlet failed, exit status 1
[root@localhost java]# rpm -e j2re-1.4.2_02-fcs
 
Old 12-09-2003, 11:53 AM   #6
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
try
rpm -qa | grep j2re

iirc, rpm -qa shows all rpms you have installed
 
Old 12-09-2003, 03:36 PM   #7
twcinpa
LQ Newbie
 
Registered: May 2003
Posts: 26

Original Poster
Rep: Reputation: 15
[tom@localhost tom]$ rpm -qa | grep j2re
j2re-1.4.2_02-fcs
[tom@localhost tom]$


Results above. Still showing the rpm.
 
Old 12-10-2003, 03:17 PM   #8
twcinpa
LQ Newbie
 
Registered: May 2003
Posts: 26

Original Poster
Rep: Reputation: 15
Can someone help me understand this output from rpm -ivv. It's the verbose output of the rpm command.

Again, rpm -e doesn not uninstall, and rpm -i says the file is already installed.

Output of rpm -ivv:

[root@localhost java]# rpm -ivv j2re-1_4_2_01-linux-i586.rpm
D: ============== j2re-1_4_2_01-linux-i586.rpm
D: Expected size: 13773613 = lead(96)+sigs(100)+pad(4)+data(13773413)
D: Actual size: 13773581
D: j2re-1_4_2_01-linux-i586.rpm: MD5 digest: OK (f675e832e32b2a1daa85550f55d0f965)
D: added binary package [0]
D: found 0 source and 1 binary packages
D: opening db environment /var/lib/rpm/Packages joinenv
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: ========== +++ j2re-1.4.2_01-fcs i586/Linux 0x0
D: opening db index /var/lib/rpm/Depends create mode=0x0
D: opening db index /var/lib/rpm/Providename rdonly mode=0x0
D: opening db index /var/lib/rpm/Pubkeys rdonly mode=0x0
D: read h# 720 Header sanity check: OK
D: ========== DSA pubkey id 219180cddb42a60e
D: read h# 753 Header V3 DSA signature: OK, key ID db42a60e
D: Requires: glibc >= 2.1.2-11 YES (db provides)
D: read h# 768 Header V3 DSA signature: OK, key ID db42a60e
D: Requires: sh-utils >= 2.0-1 YES (db provides)
D: Requires: fileutils >= 4.0-8 YES (db provides)
D: read h# 57 Header V3 DSA signature: OK, key ID db42a60e
D: Requires: gawk >= 3.0.4-1 YES (db provides)
D: Requires: textutils >= 2.0-2 YES (db provides)
D: opening db index /var/lib/rpm/Basenames rdonly mode=0x0
D: read h# 767 Header V3 DSA signature: OK, key ID db42a60e
D: Requires: /bin/sh YES (db files)
D: closed db index /var/lib/rpm/Pubkeys
D: closed db index /var/lib/rpm/Depends
D: closed db index /var/lib/rpm/Providename
D: closed db index /var/lib/rpm/Basenames
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
D: ========== recording tsort relations
D: ========== tsorting packages (order, #predecessors, #succesors, tree, depth)
D: 0 0 0 0 0 +j2re-1.4.2_01-fcs
D: installing binary packages
D: opening db environment /var/lib/rpm/Packages joinenv
D: opening db index /var/lib/rpm/Packages create mode=0x42
D: mounted filesystems:
D: i dev bsize bavail iavail mount point
D: 0 0x0342 4096 3131595 2014233 /
D: 1 0x0002 1024 0 -1 /proc
D: 2 0x0007 1024 0 -1 /proc/bus/usb
D: 3 0x0303 1024 81570 26160 /boot
D: 4 0x0006 1024 0 -1 /dev/pts
D: 5 0x0008 4096 31912 31911 /dev/shm
D: sanity checking 1 elements
D: opening db index /var/lib/rpm/Name create mode=0x42
D: read h# 863 Header sanity check: OK
D: computing 669 file fingerprints
Preparing packages for installation...
D: computing file dispositions
D: opening db index /var/lib/rpm/Basenames create mode=0x42
package j2re-1.4.2_02-fcs (which is newer than j2re-1.4.2_01-fcs) is already installed
D: closed db index /var/lib/rpm/Basenames
D: closed db index /var/lib/rpm/Name
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
[root@localhost java]#
 
Old 12-18-2003, 08:35 PM   #9
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
package j2re-1.4.2_02-fcs (which is newer than j2re-1.4.2_01-fcs) is already installed

have u tried to run java?

$which java
 
Old 12-19-2003, 02:20 PM   #10
twcinpa
LQ Newbie
 
Registered: May 2003
Posts: 26

Original Poster
Rep: Reputation: 15
I've finally got java working. I found the statement below on this page: http://plugindoc.mozdev.org/faqs/java.html:

Quote:
On Linux, Mozilla requires JRE 1.4.2 or later.

Mozilla 1.4 and later, and Mozilla Firebird, are compiled with gcc 3.2.3. A gcc 3.x compatible version of the Java plugin must be used. JRE 1.4.2 contains a compatible plugin.

If you installed the JRE 1.4.2_02 RPM, this plugin is /usr/java/j2re1.4.2_02/plugin/i386/ns610-gcc32/libjavaplugin_oji.so - and to install it for Mozilla (including Mozilla Firebird), do the following:

* Open a terminal
* Change to your Mozilla (or Mozilla Firebird) plugins directory
* Issue the following command: ln -s /usr/java/j2re1.4.2_02/plugin/i386/ns610-gcc32/libjavaplugin_oji.so

If you are using an older Linux distribution, you may need to install the gcc3 support libraries, as the gcc 3.2 version of the Java plugin requires libgcc_s.so.1 to operate. You may be able to find packages using Google.

If you are using an old or unofficial build of Mozilla (1.4a or later) or Mozilla Firebird, you can check which compiler was used by entering about:buildconfig in the location bar and pressing enter. You will see a line such as "gcc version 3.3 20030226 (prerelease) (SuSE Linux)", which will show the compiler that was used. If gcc2.9x was used, you need to use the ns610 plugin, not the ns610-gcc32 plugin.
However, the lastest version of the jre I found was (j2re1.4.2_03) . Be aware; however, the install path is different. For me 'libjavaplugin-oji.so' was installed in path: /usr/local/j2re1.4.2_03/plugin/i386/ns610-gcc32/.

Made the link into /usr/local/mozilla/plugins and now have java running. It took a few days to figure it all out. The auto loaders when a site finds you don't have java installed never worked for me. Whether it's the version of gcc or the path, I don't know
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to uninstall SuSe 8.1 & there is no uninstall jwhibdon Linux - Software 10 10-26-2006 11:57 AM
uninstall from src if no make uninstall dtra Linux - Software 3 04-29-2005 09:13 AM
uninstall java 1.4 for DB2 8.1 install greatwhite99 Linux - Newbie 17 09-21-2004 12:19 PM
Source uninstall with 'make uninstall' HOWTO! Creeps Linux - Newbie 6 09-14-2004 11:03 AM
cannot uninstall java bnujos Linux - General 3 06-25-2003 11:36 AM


All times are GMT -5. The time now is 08:42 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