-
Notifications
You must be signed in to change notification settings - Fork 73
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
[arch] Option to remove unnecessary dependencies #87
Comments
@gobonja do you mean an option to remove all unnecessary packages from the system ? The "uninstall" action was re-implemented for Arch packages in 0.9.0 and supports transitive dependencies exclusion. |
Installing e.g. xed also installs xed's dependencies (gspell, gtksourceview3, libpeas, xapps)
This of course shoudn't be default behavior but giving user option would be great. |
In this latest version bauh removes all required, so the command would look like: Cheers. |
It doesn't seems to be working correctly (e.g. tilix and xed) I like your approach with keep and uninstall buttons. |
I don't know how are you getting list of dependencies to be removed, but you can get list without version number by running: Parameter --print-format implies --print so it will only print the targets instead of performing the actual operation (sync, remove or upgrade). |
The close button would be "X" ? I'm going to review those cases you mentioned. Thanks for the tip regarding the pacman simulation command |
Yes, it is X button. |
@gobonja , I've fixed the behavior. Please, try the new RC from bauh-staging and let me know if it works on your end. |
It appears that there are still some issues. |
could you check if these dependencies are not required by other packages ? |
Yes, I checked. Those packages are removed when running run: Also I noticed that packages are installed with: Doing so marks packages: Which means that running: Installing dependency with --asdeps will mark them as: |
Indeed... but there is a reason for that. There are some packages that have malformed pkgbuilds and put some mutual dependent packages... for such cases if a install command is executed before with all dependencies, the wished package ends up being installed as a dependency of a dependency.If you use pacman's interactive mode, it sorts this out. But this subject could be another thread :). I'm going to review these cases you have mentioned. |
@gobonja , it seems fixed now. I've published a new RC to bauh-staging (RC-4). First bauh will ask the user to select the main dependencies not required by the package: After the wanted are selected, bauh will check their dependencies trees and displays everything that will be removed: Let me know if its working now. Thank you for helping me to test this feature. |
Works like a charm! Thank you for listening to the users and implementing this feature. |
No worries. The final release (0.9.1) is already available. I'm going to close this issue. Cheers |
New 0.9.0 version is great, expecially arch repository support!
Is it possible to add pacman option for remove unnecessary dependencies when removing packages?
pacman -R [-s, --recursive]
This is currently only thing that keeps me from replacing pamac with bauh.
Thanks in advance
The text was updated successfully, but these errors were encountered: