Uninstall Chocolatey package

眉间皱痕 提交于 2019-11-30 04:39:54
xuhdev

As I answered here, you can use

cuninst packagename

to uninstall a package.

Details can be found at Uninstall Command.

Edit: For new versions, should use choco uninstall packagename.

Matt

Update: Chocolatey now has primitive support for uninstall through 'cuninst packagename'. With that though the package authors need to provide a chocolateyUninstall.ps1 file that would undo all of the things that the install did. It's limited because

  • There are no functions defined in the Chocolatey PowerShell module that would help with uninstall
  • There is no automatic removal of MSIs
  • Uninstall only removes the most current version of a package in the machine repository (instead of giving you options to remove a certain one or all of them)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!