<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
David wrote:
<blockquote
cite="mid:974cfff50905262113t1241321q2c457c54903d01d3@mail.gmail.com"
type="cite">
<pre wrap="">Newbie 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:
<a class="moz-txt-link-freetext" href="https://www.redhat.com/archives/fedora-package-review/2009-May/msg01176.html">https://www.redhat.com/archives/fedora-package-review/2009-May/msg01176.html</a>
[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-1.5.0.0-21.fc9.i386
java-1.6.0-openjdk-plugin-1.6.0.0-0.10.b09.fc9.i386
java-1.6.0-openjdk-1.6.0.0-0.10.b09.fc9.i386
</pre>
</blockquote>
Hi<br>
<br>
This is most likely because you are using the alternatives system with
Java.<br>
<br>
If you type <b>alternatives --config java </b>as root it will show
you the versions of Java you have installed. In my case its<br>
<br>
There are 3 programs which provide 'java'.<br>
<br>
Selection Command<br>
-----------------------------------------------<br>
* 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java<br>
2 /usr/java/jdk1.6.0_10/bin/java<br>
+ 3 /opt/jdk1.6.0_10/bin/java<br>
<br>
So /usr/bin/java is a link that is created by the alternatives system
rather that a specific rpm<br>
<br>
In my case doing <br>
rpm -qf /usr/lib/jvm/jre-1.4.2-gcj/bin/java ---
java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.x86_64<br>
rpm -qf /usr/java/jdk1.6.0_10/bin/java --- jdk-1.6.0_10-fcs.x86_64<br>
<br>
I hope this helps :)<br>
</body>
</html>