#92 Use 'rpm --query' where possible in GNU Hello tutorial
Merged by ankursinha. Opened by oturpe.
fedora-docs/ oturpe/package-maintainer-docs rpm-for-local-package-query  into  main

Download 92.patch

The original rationale for using 'dnf repoquery'
was to minimize the amount of different tools.
'dnf repoquery' can cover both actual repo queries and local rpm files.
But it is clumsy in many ways:

  • if -C parameter is forgotten (and sometimes even if it is not),
    dnf downloads a large set of repodata that is not needed for anything.
  • Tab completion is quirky and slow.
  • The subcommand is called "repoquery",
    but it does not actually query any repo in this case.

Because of such reasons, using 'rpm --query' is better.
Long forms of all parameters are used,
because this is a tutorial, so being explicit is good.
Packagers can learn about the short options somewhere else.

makes sense, looks good, merging.

rebased onto 1247cd59e950621b58c83572d196ae3d0f1d1a17

Pull-Request has been merged by ankursinha

Metadata