I'm having issues with Java on my RedHat virtual machine. So I went to Oracle's site to download the newest version of JRE and JDK. I got the RPM and did an rpm -i to install, but it tells me its already installed. I figure I would reinstall it just to be sure, so I rpm -e to remove and it tells me it isn't installed. What am I missing?

[root@localhost Desktop]# rpm -i jre-6u26-linux-i586.rpm 
        package jre-1.6.0_26-fcs.i586 is already installed
[root@localhost Desktop]# rpm -e jre-6u26-linux-i586
error: package jre-6u26-linux-i586.rpm is not installed
[root@localhost Desktop]# 
link|improve this question

feedback

2 Answers

up vote 1 down vote accepted

The filename doesn't necessarily reflect the package's actual name. Use rpm -qp on the file to figure out what the package is really named.

link|improve this answer
Yep, figured that out. +1 and accepted. – MaxMackie Jun 13 '11 at 16:39
errr.... in 9 minutes that is. – MaxMackie Jun 13 '11 at 16:39
feedback

Nevermind, I got it. The package name is different from the RPM file. Even if it doesn't seem that way with the verbose from the terminal.

rpm -e jre-1.6.0_26-fcs.i586
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.