Skip to content
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

RCF: Feat: add autoremove #578

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Lunarequest
Copy link

@Lunarequest Lunarequest commented Nov 19, 2024

This is a request for comment on a zypper autoremove command. As a system in updated during its life cycle packages can get left behind. While zypper has rm --cleap-deps and dup --remove-orphaned both have short comings. rm only handles the package passed to it and removing orphans can remove packages a user explicitly built and installed themselves.

To bring zypper inline with the wider linux package manager system(dnf, apt/apt-get) I added a zypper autoremove command. This is code does require reworking of some parts but as it stands this will clean up unneeded and orphaned packages based on flags passed.

Thanks @janvhs who helped debug some issues with the code

Co-authored-by: janvhs <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant