The equivalent of yumdownloader is 'dnf download', but it doesn't support the --urls flag to just print out the URIs instead of downloading them. I use this to check a local package list against the upstream packages, to see whether a newer or older upstream equivalent exists. I don't want to actually download the upstream package, just look at its name. Perhaps there is a better way to do that than getting the URI and parsing it for a version number, but generally this is a missing feature that's a regression from yum, and straightforward to provide (dnf download already knows what the URIs are, so it just needs to print them and exit). Would you accept a patch to add a --urls flag?
Hi Ed, the situation with --url option is a bit more complicated than you probably expect. DNF actually does not know the URIs as the whole download process is handled by librepo library. If you wan to still contribute a patch, I would advice you to contact the librepo developers first with an RFE describing your use case, and feel free to reopen this report after the implementation of necessary bits in librepo.
Thanks for your reply. For my use case it is not necessary to see the URIs - I just filed the bug because I assumed they were easy to get. But really what I would like to see is the version and release for the package of a particular name in the repo. For example % dnf repo-query bash bash-4.3.42-1.fc22.x86_64 So a bit like 'rpm -q' but reporting what is available in the repo rather than what is installed. Is there a dnf command which does that?