Bug 2253026

Summary: Add support for using comps groups for "dnf download"
Product: [Fedora] Fedora Reporter: Neal Gompa <ngompa13>
Component: dnf5Assignee: rpm-software-management
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: daniel.mach, jkolarik, jmracek, jrohel, mblaha, nsella, packaging-team-maint, pkratoch, rpm-software-management
Target Milestone: ---Keywords: RFE, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-01-04 13:07:26 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:
Bug Depends On:    
Bug Blocks: 1665453    

Description Neal Gompa 2023-12-05 16:35:42 UTC
Currently, "dnf download" does not support comps groups as arguments like other commands do. Extending it to support comps groups would make it much easier to create filtered mirrors by downloading subsets of the repository content.

Please add support for this.

This would also mean that there should be a "dnf group download" command too.

Reproducible: Always

Comment 1 Jan Kolarik 2024-01-04 12:43:33 UTC
I can identify two use cases related to this issue. First, downloading group packages and their dependencies, which can currently be addressed with a workaround: "dnf install @'<group-name>' --downloadonly --installroot <empty_dir> --destdir <custom_dir>". The second involves downloading only the packages listed by the comps group, requiring parsing of the "dnf groupinfo" output and forwarding it to "dnf download". In both cases, reasonable workarounds exist. Am I understanding your request correctly? But anyway, given that dnf is currently in maintenance mode, and introducing new features requires strong justification, I suggest directing this request to dnf5.

Comment 2 Neal Gompa 2024-01-04 13:07:26 UTC
The problem with your workaround is that it requires root to work, whereas "dnf download" does not.

Anyway, I've moved this to the dnf5 GitHub tracker: https://github.com/rpm-software-management/dnf5/issues/1129