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
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.
Some people, when well-known sources tell them that fire will burn them, don't put their hands in the fire.
Some people, being skeptical, will put their hands in the fire, get burned, and learn not to put their hands in the fire.
And some people, believing that they know better than well-known sources, will claim it's a lie, put their hands in the fire, and continue to scream it's a lie even as their hands burn down to charred stumps.