HiNewbie question: I'm surprised by the rpm -qf response: "file /usr/bin/java is not owned by any package" below. Is it a bug? Should I report it? Where? Or am I missing something? I'm on dialup so I don't have the latest version of everything. If you do, is it the same on your system? Currently I have zero knowledge of java, I just want to try freemind re: https://www.redhat.com/archives/fedora-package-review/2009-May/msg01176.html [root kablamm ~]# java -version java version "1.6.0" OpenJDK Runtime Environment (build 1.6.0-b09) OpenJDK Client VM (build 1.6.0-b09, mixed mode) [root kablamm ~]# which java /usr/bin/java [root kablamm ~]# rpm -qf /usr/bin/java file /usr/bin/java is not owned by any package [root kablamm ~]# uname -r 2.6.25-14.fc9.i686 [root kablamm ~]# rpm -qa 'java*' java_cup-0.10-0.k.6jpp.2.i386 java-1.5.0-gcj-188.8.131.52-21.fc9.i386 java-1.6.0-openjdk-plugin-184.108.40.206-0.10.b09.fc9.i386 java-1.6.0-openjdk-220.127.116.11-0.10.b09.fc9.i386
This is most likely because you are using the alternatives system with Java.
If you type alternatives --config java as root it will show you the versions of Java you have installed. In my case its
There are 3 programs which provide 'java'.
* 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
+ 3 /opt/jdk1.6.0_10/bin/java
So /usr/bin/java is a link that is created by the alternatives system rather that a specific rpm
In my case doing
rpm -qf /usr/lib/jvm/jre-1.4.2-gcj/bin/java --- java-1.4.2-gcj-compat-18.104.22.168-40jpp.115.x86_64
rpm -qf /usr/java/jdk1.6.0_10/bin/java --- jdk-1.6.0_10-fcs.x86_64
I hope this helps :)