Bug 2217093

Summary: dnf5 repoquery missing -C argument
Product: [Fedora] Fedora Reporter: Daniel Milnes <daniel>
Component: dnf5Assignee: rpm-software-management
Status: CLOSED DEFERRED QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: jkolarik, nsella, pkratoch, rpm-software-management
Target Milestone: ---Keywords: RFE
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-26 06:29:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Milnes 2023-06-23 20:25:56 UTC
The dnf5 version of dnf-repoquery does not currently support the -C/--cacheonly argument to "run entirely from system cache, don't update cache". This is breaking automation which calls the plugin, notably FedoraReview.

Reproducible: Always

Steps to Reproduce:
1. dnf install dnf5
2. dnf5 repoquery -C
Actual Results:  
Unknown argument "-C" for command "repoquery". Add "--help" for more information about the arguments.

Expected Results:  
dnf should perform repoquery using only its local cache.

I'm unsure if this is intentional or still being worked on. If the former, I'll raise a PR on FedoraReview to remove the argument.

Comment 1 Daniel Milnes 2023-06-23 20:34:44 UTC
This appears to be being tracked upstream as https://github.com/rpm-software-management/dnf5/issues/227.

Happy to close this if this is better tracked on GitHub.

Comment 2 Jan Kolarik 2023-06-26 06:29:31 UTC
Hello, yep, this is already tracked in upstream, so please watch for the changes there. I am actually planning to implement it this week, so hopefully it will be delivered quite soon.