-
Notifications
You must be signed in to change notification settings - Fork 886
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
choco uninstalled a number of wrong packages when I want to uninstall ONE package #3437
Comments
I had two powershell tabs opened. Here is the other tab. |
Also happened with me |
When installing software, Chocolatey CLI takes a snapshot of the file system and registry so it knows what to remove when uninstalling. If, while installing a package, there are other installation going on in the background, then Chocolatey CLI will naturally see those as changing during the install, and naturally assume that those changes are part of the software installation. Upon uninstall, using the Chocolatey Automatic Uninstaller, it will likely remove the other software that was captured during the Chocolatey CLI package installation. The two options are:
Based on experience I'm not going to try to reproduce this as I won't be able to. It's based on your environment at the time of the uninstallation. |
Other packages are also installed by choco. |
If you mean that you are running Chocolatey CLI in parallel (i.e. more than one instance of Chocolatey CLI is running at the same time) then this will cause the problem you are experiencing. If that is not what you meant, can you expand on your comment, as I don't understand? |
I might have run Choco CLI in parallel. I suggest Choco CLI to print a warning message when running in parallel |
Checklist
What You Are Seeing?
I run
choco uninstall jetbrainstoolbox
. A audacity logo poped out. After this I can't find audacity in my system anymore. Then KeepassWhat is Expected?
Uninstall the correct package.
How Did You Get This To Happen?
choco install --force jetbrainstoolbox
choco uninstall jetbrainstoolbox
System Details
Name Value
PSVersion 5.1.22621.2506
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.22621.2506
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Chocolatey v2.2.2
3 validations performed. 2 success(es), 1 warning(s), and 0 error(s).
Validation Warnings:
being ignored due to the current command being used 'list'.
It is recommended that you reboot at your earliest convenience.
0 packages installed.
Installed Packages
Output Log
Additional Context
No response
The text was updated successfully, but these errors were encountered: