Add option to automatically remove unused dependency packages #40
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "autoremove"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Idea courtesy of prpr, but implemented as an advanced option.
(we can discuss what the default value for the option should be!)
Looks good to me.
One thing I would change though is to put the word "dependent" in there, to avoid
panicking folk that things they haven't used for a while are automatically going to
get deleted:
"Automatically remove unused dependent packages" or
"Automatically remove unneeded dependent packages"
but it's getting a bit long. Perhaps just:
"Automatically remove dependent packages"
I would also have the default as 1 not 0.
If package X installs "a whole lotta libs" on installation, I think most users would
expect "a whole lotta libs" to get uninstalled when package X is.
Done in
fc3b28e978
Incorporated both things - wording and default.
A possible issue is that some of the dependent packages could be useful in their own right.
For example uninstalling detectads could cause the removal of the ir package
detectads depends on chaseget which depends on ir
It might be better (but more work) to only auto remove Advanced packages
I assume it would be difficult to tell if a package was initially installed as a dependency or had been manually installed.
opkg knows the difference.
If ir was installed manually, then detactads was installed and subsequently removed, then only chaseget would get uninstalled, leaving ir intact.
If the user really wanted ir and it had been installed as a dependency rather than manually, then they would soon reinstall it manually if it got removed.
Good, I withdraw my suggestion
Pull request closed