-
Notifications
You must be signed in to change notification settings - Fork 157
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
Extend unneeded packages by weak dependencies #553
Comments
Does it work if you add |
So you want 'dnf autoremove` remove all weakdeps packages if install_weak_deps us set to false? I.e. the install_weak_deps state at the time where the package was installed should not matter? |
The idea is that |
I believe that user wants to cut from the system all optional packages that were not installed by user. In past, those dependencies (Recommends) could be installed because |
We've got a request (https://issues.redhat.com/browse/RHEL-27937) to extend functionality of
autoremove
command to also remove optionally weak dependencies as unneeded packages.The current implementation uses empty job and then we use
void solver_get_unneeded(Solver *solv, Queue *unneededq, int filtered);
to get unneeded packages. The result is identical ifsolverflags
containsignorerecommended
or not (see https://github.com/rpm-software-management/libdnf/blob/ef8ac7fcedea1ec87dd3149ce1abdf8daeee25b9/libdnf/sack/query.cpp#L2248).I would like to ask you whether the functionality is supported by libsolv and how we can use it?
I will be happy to provide additional information but I discover that classical testcase does not show unneeded packages. Anyway here is a test case:
Expectation:
Detect somehow
pkg-B
as unneeded packages when solver is supposed to ignore weak dependencies. I am completely fine if we will use another method, solver flag to get such information.The text was updated successfully, but these errors were encountered: