chocolatey / chocolatey/choco

Feature preference to automatically remove dependencies

Open
#2,300 6 comments 0 reactions 1 assignee Claimed by @pauby View on GitHub
0 - Triaging
Dominant language
C#
Stars
11.5k
Forks
960
PR merge metrics
No merged PRs in 30d

Description

It seems that currently we have to pass in `-x`/`--force-dependencies`/`--remove-dependencies`/equivalent to `choco uninstall` to remove package dependencies. I don't think I'd ever **not** want to uninstall dependencies when uninstalling a package, so I think it'd be very useful to have some feature preference to always uninstall dependencies, like:
```ps1
choco feature enable -n=alwaysUninstallDependencies
```
Maybe there should still be a way to choose to not uninstall dependencies.

Or am I understanding the option wrong and does `-x` also remove dependencies required by other packages and/or dependencies installed explicitly?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.