[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: F9 "/usr/bin/java is not owned by any package" - huh?



David wrote:
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:
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-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

  
Hi

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'.
 
  Selection    Command
-----------------------------------------------
*  1           /usr/lib/jvm/jre-1.4.2-gcj/bin/java
   2           /usr/java/jdk1.6.0_10/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-1.4.2.0-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 :)

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]