Can't install YUM

Paul W. Frields stickstr at cox.net
Fri Feb 11 19:59:01 UTC 2005


On Fri, 2005-02-11 at 12:42 -0700, Karl Hudnut wrote:
> Hi Jeff,
> 
> You know that 
>    rpm -qf /path.../filename
> gives the rpm that provides a file?
> 
> On a FC1 machine I typed:
> 
> rpm -qf /usr/lib/libgmp.so.3.3.2
> 
> That gives:
> 
> gmp-4.1.2-9
> 
> So that means you need gmp-4.1.2-9...rpm installed. You can get it from 
> rpmfind:
> 
> rpmfind.net/linux/RPM/ fedora/1/i386/gmp-4.1.2-9.i386.html

Solving this might seem harder if you didn't have access to another box
with gmp installed. You can still solve it, however, by installing the
rpmdb-redhat RPM on your system (which is useful for a number of
purposes), and running:

  rpm -q --dbpath /usr/lib/rpmdb/i386-redhat-linux/redhat/
     --whatprovides libgmp.so.3

That will provide the answer from the actual distribution:

  gmp-4.1.2-2

Get that RPM from your Red Hat 9 distribution and install, and you
should be set. By the way, if you have that rpmdb-redhat RPM installed,
you can use the rpm -ivh --aid switch, so if the stock distro knows what
the solution to a dependency is, it will simply suggest the resolution
to you. Have fun!

-- 
Paul W. Frields, RHCE




More information about the fedora-legacy-list mailing list