Re: rpm question

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

 



On Sun, 10 Jun 2012 22:00:34 -0700, Gordon Messmer wrote:

> On 06/09/2012 08:57 AM, JD wrote:
> > Is rpm broken?
> >
> > # rpm -qv --whatrequires libmapi libzeitgeist
> 
> No.  From 'man rpm':
>    --whatrequires CAPABILITY
>      Query all packages that require CAPABILITY for proper functioning.
> 
> The arguments to whatrequires aren't package names, they're capabilities 
> (which *may* be a package name).
> 
> Instead try:
> rpm -qv --whatrequires libmapi libzeitgeist $(rpm -q --provides libmapi 
> libzeitgeist | cut -f1 -d' ')

The idea is good, but it is error-prone because it cuts off version
information from the capabilities. For example, it could be that a
package 

  Provides: something… = 1.0

and another package

  Requires: something… = 2.0

which with your query would result in a false-positive.

-- 
Fedora release 17 (Beefy Miracle) - Linux 3.4.0-1.fc17.x86_64
loadavg: 0.77 0.30 0.15
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux