-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide reverse-requires search in zypper #214
Comments
Yes, please |
Extend zypp::sat::Pool by wrapping the pool_whatmatchesdep functionality from libsolv. This is required to implement a reverse dependency search in zypper (fixes openSUSE/zypper#214)
This patch adds a new switch to zypper to support searching reverse dependencies for a package or a set of packages (fixes openSUSE#214)
If you want to match against a given package (and not a dependency), you should not use |
@mlschroe What the code does is look for a package to extract all its "provides:" then looks for packages that require one of the provides. Would I get the same from pool_whatmatchessolvable too? |
also |
This patch adds a new switch to zypper to support searching reverse dependencies for a package or a set of packages (fixes openSUSE#214)
While at it, please add a short command like "rr" as abbreviation for reverse-requires, other commands have such short commands too. (if, se, in,..). |
@linuunix |
Apart from that, |
Regarding looking at the provides and then searching for packages that match the provides: that doesn't really work with rich dependencies. If a package has (That's actually why pool_whatmatchessolvavble was added, because dnf also did it wrong and a bug was opened against it.) Regarding the name: Regarding |
Maybe we have different understanding of |
Installable in the libsolv sense means that the package architecture is allowed on the system and the package is not disabled (libzypp does not do this). See |
Ok then we should not do it the wrong way :D.
Naming is not fixed yet, it was just meant as a temporary switch for now. We take suggestions. One thing missing though, zypper se has the --verbose switch which shows a list of which depenencies have matched in the search. Any chance we can get that data from libsolv or if not already possible the API can be extended to get to the information? |
Exposes the following libsolv functions by wrapping them in sat::Pool: - pool_whatmatchesdep -> Pool::whatMatchesDep - pool_whatmatchessolvable -> Pool::whatMatchesSolvable - pool_whatcontainsdep -> Pool::whatContainsDep Also adds a new sat::Solver function by wrapping: - solvable_matchessolvable -> Solvable::matchesSolvable
This patch adds a new switch to zypper to support searching reverse dependencies for a package or a set of packages
This patch adds a new switch to zypper to support searching reverse dependencies for a package or a set of packages
Exposes the following libsolv functions by wrapping them in sat::Pool: - pool_whatmatchesdep -> Pool::whatMatchesDep - pool_whatmatchessolvable -> Pool::whatMatchesSolvable - pool_whatcontainsdep -> Pool::whatContainsDep Also adds a new sat::Solver function by wrapping: - solvable_matchessolvable -> Solvable::matchesSolvable
imho ... use something like "zypper what-dependson" or at least have it as an alias. similar to "zypper what-provides" |
This patch adds a new switch to zypper to support searching reverse dependencies for a package or a set of packages
This patch adds a new set of switches to zypper to support searching reverse dependencies for a package or a set of packages
This patch adds a new set of switches to zypper to support searching reverse dependencies for a package or a set of packages
We decided to add switches to the normal search command, for now. Zypper already has many many commands adding new ones will just make it worse. |
Exposes the following libsolv functions by wrapping them in sat::Pool: - pool_whatmatchesdep -> Pool::whatMatchesDep - pool_whatmatchessolvable -> Pool::whatMatchesSolvable - pool_whatcontainsdep -> Pool::whatContainsDep Also adds a new sat::Solver function by wrapping: - solvable_matchessolvable -> Solvable::matchesSolvable
This patch adds a new set of switches to zypper to support searching reverse dependencies for a package or a set of packages
This patch adds a new set of switches to zypper to support searching reverse dependencies for a package or a set of packages
What version of opensuse/leap should this be available in? |
@brianjmurrell zypper-1.14.33 (1.14.*) should go to TW and Leap15*
|
Just as apt has a command called "apt-rdepends" that you can use to find all packages depending on a given package, we should have a option in zypper search (maybe reverse-requires) that allows the user to find all packages that require a given package.
For example:
zypper se --reverse-requires libqt5core5
Also we should have a switch wether to expand packages (i.e. 'FOO' as 'literally FOO' or 'everything FOO provides' in case it's a package)
The text was updated successfully, but these errors were encountered: