Skip to content

Implement additional repoquery options #122

@kontura

Description

@kontura

The dnf4 repoquery command has a lot of options.

There are two categories:

Select Options

Together with the <package-file-spec> argument, control what packages are displayed in the output.

  • <package-file-spec>

  • -a, --all

    • Proposing to drop it (document as a change). It is a default dnf behavior and it was added as compatibility option with yum
  • --arch / --archlist

    • Please change other command that uses the same o similar options (even option can be the same, but schematic of arguments can be different) in DNF and unify it
  • --duplicates

  • Implement repoquery --unneeded option #454

  • --available

  • --disable-modular-filtering

  • --extras

  • -f <file>, --file <file>

  • --installed

  • --installonly

  • --latest-limit <number>

  • --recent

    • Priority low
  • --repo <repoid>

    • It is a general option. Investigate why it is explicitly mentioned in repoquery
    • [amatej] The best I can tell the option got imported together with repoquery command into dnf. Perhaps before when repoquery was separate the option was needed.
  • --upgrades

  • --userinstalled

  • --whatdepends <capability>[,<capability>...]

  • --whatconflicts <capability>[,<capability>...]

  • --whatenhances <capability>[,<capability>...]

  • --whatobsoletes <capability>[,<capability>...]

  • --whatprovides <capability>[,<capability>...]

  • --whatrecommends <capability>[,<capability>...]

  • --whatrequires <capability>[,<capability>...]

  • --whatsuggests <capability>[,<capability>...]

  • --whatsupplements <capability>[,<capability>...]

  • --alldeps

    • It is a default behavior of DNF therefore I propose to remove it (document the change). The reason of presence of the option -> the default was changed in history
  • --exactdeps

  • --srpm

    • Please verify that other commands use --srpm, or --source using the same principle

Formatting Options

Set what information is displayed about each package.

  • -i, --info #479
  • -l, --list
    • Proposing to rename to more appropriate --files
  • -s, --source
    • Please verify that other commands use --srpm, or --source using the same principle
  • --changelogs
  • --conflicts
  • --depends
  • --enhances
  • --location
  • --obsoletes
  • --provides
  • --recommends
  • --requires
  • --requires-pre
  • --suggests
  • --supplements
  • --nvr
    • Proposing to drop it (document as a change) (yum compatibility)
  • --nevra
    • Proposing to drop it (document as a change) (yum compatibility) - default behavior
  • --envra
    • Proposing to drop it (document as a change) (yum compatibility) - DNF is unable to parse such a spec
  • --qf , --queryformat <format>
    • Priority medium (required by fedora-review)

Additional options:

  • --querytags
  • --groupmember <package-spec> -> move to group command --contains-pkgs <pkg> option?
    • moving to group command is a good suggestion. Please document it to DNF to DNF5 changes

Additional tasks:

  • Add option conflicts (if/where needed)
  • Enable autocomplete
  • Add man pages/documentation
  • Enable CI tests

Options tracked in separate issues:

Metadata

Metadata

Assignees

Labels

Priority: HIGHRFERequest For Enhancement (as opposed to a bug)TriagedSomeone on the DNF 5 team has read the issue and determined the next steps to take

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions