Skip to content

[FR] Add new arg as alias to all existing dependency args #652

Description

@pallaswept

Hi team,

In my adventures packaging apps for TW, I have a common use-case for zypper search, where I want to find dependencies of a package, or packages which depend on a package, eg:

zypper se --requires foo
or
zypper se --requires-pkg foo

Trouble is, to find all of the dependencies requires me to run several searches, looking for each of the different dependency types:

--(provides|requires|recommends|supplements|conflicts|obsoletes|suggests) DEPENDENCY
--(provides|requires|recommends|supplements|conflicts|obsoletes|suggests)-pkg PACKAGE

This makes it very cumbersome to find out answer to questions like "what is pulling in this package?" or "what packages will this pull in?", as it requires 7 or 14 commands to get the job done.

It would be really nice if we had a single arg, which searched for any or all of these dependency types! This way instead of doing:

zypper se --provides foo
zypper se --requires foo
zypper se --recommends foo
zypper se --supplements foo
zypper se --conflicts foo
zypper se --obsoletes foo
zypper se --suggests foo

I could just do for example:

zypper se --depends foo

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions