Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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. – n0pe Jun 13 '11 at 16:39
    
errr.... in 9 minutes that is. – n0pe Jun 13 '11 at 16:39

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .