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

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

 



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 :)
-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux