I've run into a bit of an issue with rpm on an Oracle Linux 6.5 box.
I installed an RPM, and it appears to have installed successfully. However, now I am trying to remove it, but rpm says it's already installed. I am trying to uninstall it by package name, not the full *.rpm name. Ex:
[root@server06 ~]# rpm -ivh package-10.0.0B116-02202013-x64.rpm
Preparing... ########################################### [100%]
package custom-linux-9026-10.0.0-BUILD116.noarch is already installed
[root@server06 ~]# rpm -ql package-10.0.0B116-02202013-x64.rpm
package package-10.0.0B116-02202013-x64.rpm is not installed
[root@server06 ~]# rpm -q package-10.0.0B116
package package-10.0.0B116 is not installed
[root@server06 ~]# rpm -e package-10.0.0B116
error: package package-10.0.0B116 is not installed
So the system won't let me install it again because it thinks it's already there, but won't let me uninstall it because it thinks it's not there.
rpm -qa |grep -i package
returns nothing.
rpm --rebuilddb
doesn't help either.