Re: java

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

 



Rahul Sundaram wrote:
Timothy Murphy wrote:

Paul Howarth wrote:

$ ls -l /usr/lib/libodbcinst.so
lrwxrwxrwx  1 root root 20 Jun 15 15:05 /usr/lib/libodbcinst.so ->
libodbcinst.so.1.0.0
$ rpm -qf /usr/lib/libodbcinst.so
unixODBC-devel-2.2.11-1


As a matter of interest, suppose you didn't have this package installed.
Is there any way of asking which rpm in the world contains a given library file (or "object")?
I know google often gives a hint,
but is there any better way?

yum provides <library>

This will tell you which package provides the required dependency. However, the version of yum in FC4 can do better than this. If you use "yum localinstall some.rpm" then it will figure out the required dependencies and install them for you along with the package some.rpm:

# yum localinstall java-1.5.0-sun-jdbc-1.5.0.03-1jpp.i586.rpm
Setting up Local Package Process
Examining java-1.5.0-sun-jdbc-1.5.0.03-1jpp.i586.rpm: java-1.5.0-sun-jdbc - 1.5.0.03-1jpp.i586
Marking java-1.5.0-sun-jdbc-1.5.0.03-1jpp.i586.rpm to be installed
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package java-1.5.0-sun-jdbc.i586 0:1.5.0.03-1jpp set to be updated
--> Running transaction check
Setting up repositories
updates-released          100% |=========================|  951 B    00:00
jpackage16-fc             100% |=========================|  903 B    00:00
jpackage16-generic        100% |=========================|  903 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
base                      100% |=========================|  951 B    00:00
Reading repository metadata in from local files
--> Processing Dependency: /usr/lib/libodbcinst.so for package: java-1.5.0-sun-jdbc
Importing Additional filelist information for dependency resolution
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package unixODBC-devel.i386 0:2.2.11-1 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
java-1.5.0-sun-jdbc i586 1.5.0.03-1jpp java-1.5.0-sun-jdbc-1.5.0.03-1jpp.i586.rpm 66 k
Installing for dependencies:
unixODBC-devel i386 2.2.11-1 base 750 k

Transaction Summary
=============================================================================
Install      2 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 815 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): unixODBC-devel-2.2 100% |=========================| 750 kB    00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: unixODBC-devel               ######################### [1/2]
  Installing: java-1.5.0-sun-jdbc          ######################### [2/2]

Installed: java-1.5.0-sun-jdbc.i586 0:1.5.0.03-1jpp
Dependency Installed: unixODBC-devel.i386 0:2.2.11-1
Complete!

Paul.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux