如何卸载Chocolatey软件包及其所有依赖项?

Por*_*Man 7 chocolatey

阅读文档,看来我应该能够安装带有-x标志的软件包及其依赖项。但是,当我尝试使用命令卸载javaruntime软件包时choco uninstall javaruntime -x,由于依赖关系,它失败了。

它给了我这个错误:

>  choco uninstall javaruntime -x
Chocolatey v0.10.1
Uninstalling the following packages:
javaruntime
javaruntime not uninstalled. An error occurred during uninstall:
 Unable to uninstall 'javaruntime 8.0.101' because 'groovy 2.3.6' depends on it.

Chocolatey uninstalled 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - javaruntime (exited 1) - javaruntime not uninstalled. An error occurred during uninstall:
 Unable to uninstall 'javaruntime 8.0.101' because 'groovy 2.3.6' depends on it.
Run Code Online (Sandbox Code Playgroud)

难道我做错了什么?

Mar*_*una 7

尝试这个:

choco uninstall webdeploy -x
Run Code Online (Sandbox Code Playgroud)

webdeploy可以改变你的目标包要卸载。

在此处输入图片说明

  • 其中“-x”,与“--forcedependency”、“--removedependency”相同。卸载包时卸载依赖项。默认为 false。 (3认同)