Description of problem:
Common use case for me is creating a offline repository that contains a single major package and all its dependencies (for example, bleeding edge version of Transmission)
Hello, yes we'll take a look.
Rahul wouldn't 'dnf install X --downloadonly' be a better option for the use case, or IOW, how does yumdownloader compare to functionality of --downloadonly?
--downloadonly isn't documented if it already exists but if it does, it kinda sounds contradictory to say it will install something but it is download only. also does it support --destdir, --resolve and --source? I use all three quite often to fetch the srpm of some repo package along with deps, make some changes and run my own repo off the changes made to test it before pushing the change over.
[09:17]<zpavlas> akozumpl: --downloadonly is essentially equivalent to yumdownloader --resolve. And (core) yum does now support the -destdir too.
yum install *.rpms --downloaddir=directory --downloadonly
Adding a support for --downloadonly and --destdir should be relatively easy, and --resolve is implicit. To cover the full yumdownloader feature set we'd have to add --noresolve, but I don't think it's necessary. You probably use yumdownloader without --resolve to download srpms, right? In that case --resolve should not make much difference anyway. Is implicit resolving of dependencies a problem?
Yeah, I don't need --noresolve. If you add support for --downloadonly, --destdir and --source and document these options, my request can be considered resolved. Thanks for looking into this.
Does this solve your needs
Use these command to test the tool:
sudo dnf copr enable timlau/dnf-utils
sudo dnf install dnf-utils
The plan is move the tool into dnf-plugins-core when ready
download command is added to dnf-plugins-core-0.0.8, available in fedora updates