-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
Uninstalling a mod should also prompt user about uninstalling its unused dependencies #978
Comments
Arch Linux's package manager, pacman, (and presumably others) does this by keeping a bit in its database to indicate if a package was installed explicitly by the user. Then when a package is uninstalled, it will also automatically remove any dependencies that were 1) not installed explicitly and 2) are not needed by any other package. pacman also includes functionality to:
By default I would suggest that automatic removal be used and be recursive. I would also suggest that since "explicitness" isn't currently stored that when first populating the bit, all top level packages (packages that are not dependencies for any other package) be marked as explicitly installed and all other packages be marked as being installed implicitly. This isn't perfect but good enough so long as users can toggle the explicit bit themselves. |
+1 on dbent's comments here. |
I like any kind of solution that makes this system work, think it would be awesome :) |
Implementing this might accidentally provide a solution to #589 ? Or am I misunderstanding how this marking of mods explicitly installed and not would be added? |
Implemented in #2753. |
It was mentioned in the CKAN thread over at the forums that it would be pretty kickass if CKAN upon removing a mod also removed dependencies which no other mod depends on.
Say we e.g. install
FerramAerospaceResearch
which depends onModuleManager
andModularFlightIntegrator
. After that we installHotRockets
which depends onModuleManager
andSmokeScreen
.We now have the following list of installed mods:
Currently if we uninstall
FerramAerospaceResearch
we'll end up with the following list of installed mods:While it seems more logical that we should end up with:
The reason for prompting the user about these things would be that e.g. uninstalling
KarbonitePlus
doesn't necessarily mean I want to uninstallKarbonite
.I think e.g. apt already works this way so it would seem a logical direction for CKAN to go in.
The text was updated successfully, but these errors were encountered: