chocolatey / choco

Chocolatey - the package manager for Windows
https://chocolatey.org
Other
10.27k stars 901 forks source link

choco uninstall: add `--remove-pin` option #3149

Open soredake opened 1 year ago

soredake commented 1 year ago

Checklist

Is Your Feature Request Related To A Problem? Please describe.

Right now when you try to remove pinned package you will get:

❯ sudo choco uninstall syncthingtray
Uninstalling the following packages:
syncthingtray
syncthingtray is pinned. Skipping pinned package.

And in order to remove it you will need to type choco pin remove --name=syncthingtray and then do uninstall again, which is annoying.

Describe The Solution. Why is it needed?

Add --remove-pin option to uninstall command so pin would be removed before uninstall.

Additional Context

No response

Related Issues

No response

superbonaci commented 1 year ago

At this moment, a pinned package has two purposes:

What you want is two types of pins:

soredake commented 5 months ago

Chocolatey now have option to ignore pins during upgrade https://github.com/chocolatey/choco/pull/2464