Bug 1393704
Summary: | [RFE] add 'rpm -q --whatrequires --all-deps' functionality | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Pavel Raiskup <praiskup> |
Component: | rpm | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | fmuta, kardos.lubos, novyjindrich, packaging-team-maint, pknirsch, pmatilai, riehecky |
Target Milestone: | --- | Keywords: | FutureFeature |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-03-24 07:12:55 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Pavel Raiskup
2016-11-10 08:07:58 UTC
$ rpm -q --provides libarchive | awk '{print $1}' | xargs rpm -q --whatrequires Yep, something like that could solve RPM directly. This is technically a dupe of bug 142651 which is a dupe of bug 84176 which easily predates repoquery but I never much cared for the suggested --whatneeds name. What a software *needs* is users, what it *requires* to function is an entirely different question, and whether the requirements are depsolved or not is yet another question. repoquery (the yum-based one) originally mimiced rpm but then sanity prevailed: > commit bc3d026acd1c8f332d024bf9a9918da6451c8c07 > Author: Ville Skyttä <ville.skytta> > Date: Tue Feb 9 21:35:15 2010 +0200 > > Make --alldeps the default in repoquery. > > --alldeps is what people really almost always want, but fail to > specify for some reason. --exactdeps can be used to get the previous > default of exact matching. Not sure what dnf repoquery does but from the sound of this, it's defaulting to the stupid rpm behavior which almost nobody wants. So what rpm really needs is a switch to enable/disable depsolve on all those --whatrequires/recommends etc options, which is what this bug describes in clear and conscise matter. So to keep in tradition of closing the older bug as dupe ;) I'm keeping this one. There's also another way to get rpms opinion: $ rpm -e --test rpm-libs 2>&1 | awk '/^\t/ {print $NF}' That is subtly different from the --provides/--whatrequires combination in comment #1 as --test considers the %pre/%post dependency differences (ie its a real dependency check), --provides/--whatrequires does not. *** Bug 142651 has been marked as a duplicate of this bug. *** (In reply to Panu Matilainen from comment #3) > repoquery (the yum-based one) originally mimiced rpm but then sanity > prevailed: > > > commit bc3d026acd1c8f332d024bf9a9918da6451c8c07 > > Author: Ville Skyttä <ville.skytta> > > Date: Tue Feb 9 21:35:15 2010 +0200 > > > > Make --alldeps the default in repoquery. > > > > --alldeps is what people really almost always want, but fail to > > specify for some reason. --exactdeps can be used to get the previous > > default of exact matching. > > Not sure what dnf repoquery does but from the sound of this, it's defaulting > to the stupid rpm behavior which almost nobody wants. Since DNF 2.0, it's not true anymore. (In reply to Igor Gnatenko from comment #5) > (In reply to Panu Matilainen from comment #3) > > Not sure what dnf repoquery does but from the sound of this, it's defaulting > > to the stupid rpm behavior which almost nobody wants. > Since DNF 2.0, it's not true anymore. Good. So once again history repeats itself :) Moving the RFE to upstream. https://github.com/rpm-software-management/rpm/pull/2451 If you want to provide feedback on the defaults, naming and the like, this is the once-in-a-lifetime chance :D |