Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I uninstall a Chocolatey package and all its dependencies?

Tags:

chocolatey

Reading the documentation, it appears that I should be able to install package and its dependencies with the -x flag. But when I try to uninstall the javaruntime package with the command choco uninstall javaruntime -x, it fails because of dependencies.

It gives me this error:

>  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.

Am I doing something wrong?

like image 707
PortMan Avatar asked Sep 22 '16 00:09

PortMan


People also ask

How do I uninstall a Chocolatey package?

Should you decide you don't like Chocolatey, you can uninstall it simply by removing the folder (and the environment variable(s) that it creates).

Where are Choco packages stored?

Chocolatey packages are installed to ChocolateyInstall\lib , but the software could go to various locations, depending on how the package maintainer created the package. Some packages are installed under ChocolateyInstall\lib , others - especially packages that are based on Windows installers (.

How do I know if Chocolatey is installed?

To verify that Chocolatey is installed, we will use the choco command. C:\WINDOWS\system32>choco Chocolatey v0. 10.15 Please run 'choco -? ' or 'choco -?


1 Answers

Try this:

choco uninstall webdeploy -x

The webdeploy can be change to your target package you want to uninstall.

Enter image description here

like image 59
Marvin Glenn Lacuna Avatar answered Sep 29 '22 02:09

Marvin Glenn Lacuna