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]# |
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 |
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]# |
try rpm -e j2re-1.4.2_02-fcs
not with -linux.rpm at the end. |
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 |
try
rpm -qa | grep j2re iirc, rpm -qa shows all rpms you have installed |
[tom@localhost tom]$ rpm -qa | grep j2re
j2re-1.4.2_02-fcs [tom@localhost tom]$ Results above. Still showing the rpm. |
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]# |
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 |
I've finally got java working. I found the statement below on this page: http://plugindoc.mozdev.org/faqs/java.html:
Quote:
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. |