[Rpm-maint] rpm feature
Adam Jackson
ajax at redhat.com
Wed Jun 16 13:44:46 UTC 2010
On Wed, 2010-06-16 at 08:53 -0400, seth vidal wrote:
> On Wed, 2010-06-16 at 00:30 -0700, JD wrote:
> > Greetings all,
> > Is there a way to query the database to list the packages
> > that depend on a given package?
> > I checked the man page, and I do not see such an option.
> > I see the option --requires, which is great - but would like the
> > converse of --requires, such as: --required_by
>
> rpm -q --whatrequires pkgname will tell you what specifically requires
> that pkg name - but not all the things that pkg provides.
For that, you would do:
% rpm --quiet -q --whatrequires $(rpm -q --provides pkgname) | sort -u
The uniquifying step being because rpm will print the list of consumers
for _each_ thing provided by pkgname.
- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20100616/673742bb/attachment.pgp>
More information about the Rpm-list
mailing list