Re: rpm, yum and inconsistent dependencies

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

 



Robert P. J. Day wrote:
>  just an observation -- i wanted to remove the mysql-related packages
> from my f8t1 system and, before i did that, i decided to check for
> dependencies.  one of the commands i ran:
> 
> # rpm -q --whatrequires mysql-libs
> mysql-5.0.45-4.fc8
> #
> 
>  however, i also noticed this:
> 
> # rpm -qR amarok
> ...
> libmysqlclient.so.15
> libmysqlclient.so.15(libmysqlclient_15)
> ...
> 
>  but "mysql-libs" *is* the package that supplies that shared library.
> shouldn't the rpm dependencies query be able to figure that out?

It would.  Try "rpm -e --test mysql-libs" and see if it says amarok
needs it.

The confusion is likely due to assuming that --whatrequires mysql-libs
means "what requires the package mysql-libs and all that it provides."
This isn't what the option does.  From the fine manual:

--whatrequires CAPABILITY
        Query all packages that requires CAPABILITY for proper
        functioning.

You could use rpm -q --whatrequires libmysqlclient.so.15 to see things
that require the library.  Or you could use something like this to see
what requires the things provided by mysql-libs:

rpm -q --whatrequires $(rpm -q --provides mysql-libs | \
    awk '{print $1}') | sort -u

Not pretty, but sometimes useful.  Generally, it's easier to use yum
or repoquery.

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Talk is cheap because supply exceeds demand.

Attachment: pgp8XWT1WVlEZ.pgp
Description: PGP signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[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