RPM

RFE: --whatneeds feature missing

Bug #638630 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RPM
Fix Released
Medium
Unassigned
Fedora
Invalid
Medium

Bug Description

tracker

Tags: fedora query
Revision history for this message
In , Abdelrahman (abdelrahman-redhat-bugs) wrote :

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4)
Gecko/20030630 Galeon/1.3.8

Description of problem:
[19:09] <estr4ng3d> "rpm -q --whatrequires xyz-package" says that no
package requires xyz. However, "rpm -e the-same-xyz-package" will
refuse to execute, reporting one or more package names as needing xyz.
What gives?
[19:10] jbj: -estr4ng3d: rpm -q --whatrequires `rpm -q --provides
xyz-package` is conceptually what you want
[19:11] <jbj> i.e. dependency relations are more complicated than
package dependencies, there are sonames, file paths, virtual provides,
more within the xyz-package container
[19:11] <jbj> rpm -q --provides --qf '%{name}'
[19:12] <jbj> is almost exatclt how to extract the tokens that are
used for dependency relations (there are still some details regarding
versioning that need some sdjustment)

Version-Release number of selected component (if applicable):

How reproducible:
Always

Steps to Reproduce:
1.n/a
2.n/a
3.n/a

Additional info:

Revision history for this message
In , Jeff (jeff-redhat-bugs) wrote :

*** Bug 84176 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Scott (scott-redhat-bugs) wrote :

this being a more recent report, should this not have been marked as a
duplicate of Bug 84176 and not the other way around ?

Revision history for this message
In , Paul (paul-redhat-bugs) wrote :

*** Bug 156903 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Red (red-redhat-bugs) wrote :

User <email address hidden>'s account has been closed

Revision history for this message
In , Panu (panu-redhat-bugs) wrote :

Reassigning to owner after bugzilla made a mess, sorry about the noise...

Revision history for this message
In , Scott (scott-redhat-bugs) wrote :

https://bugzilla.redhat.com/show_bug.cgi?id=84176 should still, having been the
first recorded instance of this report, been the controlling instance -- the
above recorded IRC conversation could merely be tacked onto the end of it as
continuing contribution to the description of 84176, whereas this report has
recieved _no further response_.

Revision history for this message
In , Panu (panu-redhat-bugs) wrote :

There are many ancient bugs in need of response and action, working through them
is slow business :-/

This happens to be an old "favorite" of mine, having to resort to tricks like
$ rpm --provides -q vte | xargs rpm --whatrequires -q | grep -v no\ package | uniq

..seems silly as rpm is perfectly capable of doing a proper job. One way to do
fully depsolved "whatneeds" is
$ rpm -e --test vte 2>&1|awk '{print $NF}'|uniq

...but that's still heavily in the ugly tricks department. OTOH these days you
can do this with repoquery (from yum-utils) too:
$ repoquery --pkgnarrow=installed --whatrequires --alldeps vte

That's still much more typing than one would hope though...

Revision history for this message
In , Scott (scott-redhat-bugs) wrote :

indeed. Well, as long as you're keeping Bug 84176 in consideration when you get
to where you can follow up on this. The workaround suggestions you made above
will help in the meantime though, at least for reference purposes.

Revision history for this message
In , John (john-redhat-bugs) wrote :

triaged

Revision history for this message
In , Jeff (jeff-redhat-bugs) wrote :

And <email address hidden>.

A popt alias that looks like
    rpm alias --whatneeds --queryformat '[%{whatneeds}\n]'
is all that remains to be added.

Revision history for this message
In , Panu (panu-redhat-bugs) wrote :

*** Bug 475882 has been marked as a duplicate of this bug. ***

Revision history for this message
In , devzero2000 (devzero2000-redhat-bugs) wrote :

FWIW, in the next @rpm5.org release, 5.1.7, that it will be released shortly, the functionality --whatneeds, --needwhats will be included.

Jeff Johnson (n3npq)
tags: added: fedora query
Revision history for this message
In , devzero2000 (devzero2000-redhat-bugs) wrote :

(In reply to comment #11)
> And <email address hidden>.
>
> A popt alias that looks like
> rpm alias --whatneeds --queryformat '[%{whatneeds}\n]'
> is all that remains to be added.

Implemented also in

5.1.0 -> 5.2a0

Revision history for this message
In , devzero2000 (devzero2000-redhat-bugs) wrote :

This RFE is tracked also on https://bugs.launchpad.net/rpm/+bug/638630

devzero2000 (pinto-elia)
Changed in rpm:
status: New → Fix Released
importance: Undecided → Medium
milestone: none → 5.1.10
Revision history for this message
devzero2000 (pinto-elia) wrote :

Implemented in 5.1.7.

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.

Revision history for this message
In , Panu (panu-redhat-bugs) wrote :

As for why closing the older bug as dupe, see https://bugzilla.redhat.com/show_bug.cgi?id=1393704#c3. Helps clearing out over a decades worth of historical babbage of bugzilla administrativia, owner changes and whatnot.

So if you want to complain, complain here. But lets keep the new bug tidy please :)

*** This bug has been marked as a duplicate of bug 1393704 ***

Changed in fedora:
importance: Unknown → Medium
status: Unknown → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.