Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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]# 
share|improve this question
add comment

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.

share|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
add comment

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
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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