LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   java uninstall (https://www.linuxquestions.org/questions/linux-general-1/java-uninstall-124044/)

twcinpa 12-08-2003 08:57 PM

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]#

doublefailure 12-08-2003 09:49 PM

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

twcinpa 12-08-2003 10:39 PM

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]#

doublefailure 12-09-2003 12:00 AM

try rpm -e j2re-1.4.2_02-fcs

not with -linux.rpm at the end.

twcinpa 12-09-2003 12:33 AM

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

doublefailure 12-09-2003 11:53 AM

try
rpm -qa | grep j2re

iirc, rpm -qa shows all rpms you have installed

twcinpa 12-09-2003 03:36 PM

[tom@localhost tom]$ rpm -qa | grep j2re
j2re-1.4.2_02-fcs
[tom@localhost tom]$


Results above. Still showing the rpm.

twcinpa 12-10-2003 03:17 PM

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]#

doublefailure 12-18-2003 08:35 PM

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

twcinpa 12-19-2003 02:20 PM

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


All times are GMT -5. The time now is 11:22 PM.