• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to remove java rpm from RH9  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have installed one version of java rpm , but I want to uninstall that rpm and again install another version of java rpm.
when removing the rpm I am getting error


when i gave this command rpm --erase j2sdk-1.4.2_06-fcs
/var/tmp/rpm-tmp.74056: command substitution: line 1: unexpected EOF while looki
ng for matching `"'
/var/tmp/rpm-tmp.74056: command substitution: line 2: syntax error: unexpected e
nd of file
 
Saloon Keeper
Posts: 18800
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not necessary to erase jdk's when newer ones come in, since Sun has ensured that their RPM directory structure keeps every JDK in its own place. I usually have 2-3 on a system since I don't like to delete them until I'm sure that nothing broke that will require falling back.

Your message looks like a problem in one of the RPM script files. You are running as root, I hope (since you'd probably not even get THAT far otherwise). You might want to look at the temp file script to see if there's anything in there that helps.

When all else fails, forcibly delete the RPM from the RPM database and manually delete the unwanted jdk files. They're all going to be under the /usr/java/j2sdk1.4.2_06 directory.

You might try rpm -V to check the current installation and/or do a fix run on the RPM database. It couldn;t hurt and it might help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!