Bug 1243565 - dnf repoquery should default --alldeps to on, add --exactdeps
Summary: dnf repoquery should default --alldeps to on, add --exactdeps
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugins-core
Version: 23
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1245137 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-15 19:27 UTC by Ville Skyttä
Modified: 2016-07-21 09:03 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-21 08:54:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ville Skyttä 2015-07-15 19:27:57 UTC
dnf repoquery defaults --alldeps to off. This is not a good default for whatrequires queries, the use case where one would want to search for exactly the given string is rare compared to alldeps.

For this reason, yum-utils' repoquery has --alldeps on by default, and provides --exactdeps to negate it. IMO dnf repoquery should do the same.

Comment 1 Radek Holy 2015-07-21 09:56:37 UTC
*** Bug 1245137 has been marked as a duplicate of this bug. ***

Comment 2 Honza Silhan 2015-07-29 14:52:15 UTC
I would rather introduce `--whatneeds` option to query Which would be shortcut for `--whatrequires --alldeps --whatsuggests --whatrecommends`. Lets see how the weak deps will be used and wait for other user opinions.

Comment 3 Sergio Basto 2015-10-16 00:37:05 UTC
dnf repoquery --whatrequires is broken on Fedora 21.

dnf --version
0.6.4
  Installed: dnf-0:0.6.4-7.fc21.noarch at 2015-10-13 17:53
  Built    : Fedora Project at 2015-09-23 14:30

  Installed: rpm-0:4.12.0.1-7.fc21.x86_64 at 2015-07-29 03:47
  Built    : Fedora Project at 2015-06-15 07:10


I don't have options --alldeps ,only have --conflicts | --enhances | --obsoletes | --provides | --recommends | --requires | --suggests | --supplements

dnf repoquery --whatrequires libmtp 
Using metadata from Tue Oct 13 19:16:32 2015 (2 days, 6:17:05 hours old)
libmtp-devel-0:1.1.8-1.fc21.i686
libmtp-devel-0:1.1.8-1.fc21.x86_64
libmtp-examples-0:1.1.8-1.fc21.x86_64
libmtp-devel-0:1.1.9-1.fc21.i686
libmtp-devel-0:1.1.9-1.fc21.x86_64
libmtp-examples-0:1.1.9-1.fc21.x86_64

repoquery --whatrequires libmtp
amarok-0:2.8.0-11.fc21.x86_64
amarok-0:2.8.0-17.fc21.x86_64
calibre-0:2.10.0-1.fc21.x86_64
calibre-0:2.23.0-1.fc21.x86_64
cantata-0:1.4.1-1.fc21.x86_64
clementine-0:1.2.3-1.fc21.x86_64
clementine-0:1.2.3-10.fc21.x86_64
gnomad2-0:2.9.6-10.fc21.x86_64
gvfs-mtp-0:1.22.2-1.fc21.x86_64
gvfs-mtp-0:1.22.4-2.fc21.x86_64
kio_mtp-0:0.75-6.20131020git2063e75.fc21.x86_64
kio_mtp-0:0.75-10.20141221gitc418634.fc21.x86_64
libmtp-devel-0:1.1.8-1.fc21.i686
libmtp-devel-0:1.1.8-1.fc21.x86_64
libmtp-devel-0:1.1.9-1.fc21.i686
libmtp-devel-0:1.1.9-1.fc21.x86_64
libmtp-examples-0:1.1.8-1.fc21.x86_64
libmtp-examples-0:1.1.9-1.fc21.x86_64
python-pymtp-0:0.0.6-3.fc21.x86_64
rhythmbox-0:3.1-1.fc21.i686
rhythmbox-0:3.1-1.fc21.x86_64
simple-mtpfs-0:0.2-3.fc21.x86_64
vlc-core-0:2.2.0-0.2.fc21.x86_64
vlc-core-0:2.2.1-5.fc21.i686
vlc-core-0:2.2.1-5.fc21.x86_64
vlc-core-0:2.2.2-0.1.fc21.i686
vlc-core-0:2.2.2-0.1.fc21.x86_64

Comment 4 Ville Skyttä 2015-10-16 06:13:26 UTC
(In reply to Sergio Monteiro Basto from comment #3)
> dnf repoquery --whatrequires is broken on Fedora 21.

What does that have to do with this bug report?

Comment 5 Sergio Basto 2015-10-16 15:54:59 UTC
it does have bug 1245137, which a dup of this

Comment 6 Sergio Basto 2015-10-17 04:42:28 UTC
Sorry my mistake , this reports are for Fedora 22 and 23 , my issue is for Fedora 21 .
I opened a new bug #1272638 ,  last 3 comments can be ignored .

Sorry

Comment 7 Fedora Admin XMLRPC Client 2016-07-08 09:25:05 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 8 Fedora End Of Life 2016-07-19 20:48:37 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 9 Igor Gnatenko 2016-07-19 22:03:01 UTC
This bug has been fixed in DNF 2.0 which will be released soon and pushed to F23+.

Comment 10 Ville Skyttä 2016-07-19 22:39:13 UTC
I suggest keeping the bug open until it has actually happened, so people will have better awareness and visibility to the issue and what's happening to it.

Comment 11 Igor Gnatenko 2016-07-21 08:54:53 UTC
(In reply to Ville Skyttä from comment #10)
> I suggest keeping the bug open until it has actually happened, so people
> will have better awareness and visibility to the issue and what's happening
> to it.
We have more than 500 bugs opened and it's completely not possible to track all of them (thanks bugzilla). So we are trying to close already fixed bugs (we fixed a lot of them in 2.0)

Comment 12 Ville Skyttä 2016-07-21 08:59:02 UTC
Well, closing bugs without actually having the fix delivered makes it likely that you'll receive even _more_ bugs as people report "duplicates", but meh... have it your way.

Comment 13 Igor Gnatenko 2016-07-21 09:03:34 UTC
(In reply to Ville Skyttä from comment #12)
> Well, closing bugs without actually having the fix delivered makes it likely
> that you'll receive even _more_ bugs as people report "duplicates", but
> meh... have it your way.
it wasn't my decision to track all upstream bugs in RHBZ, I prefer to have github issues for upstream bugs and here for tracking, but what can I do.


Note You need to log in before you can comment on or make changes to this bug.