chocolatey / choco

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

Add "choco remove" as an alias to "choco uninstall" #1813

Open TheCakeIsNaOH opened 5 years ago

TheCakeIsNaOH commented 5 years ago

It would be nice if choco remove could be added as an alternative to choco uninstall just like cinst is an alternative to choco install.

The reasoning behind this that many of the most popular package managers such as apt, dnf, and homebrew all use remove to uninstall/remove a package. Therefore, it is muscle memory to type remove instead of uninstall for some people, myself included.

ferventcoder commented 5 years ago

@TheCakeIsNaOH

I don't have a problem with this - however when we start considering the context of that command versus uninstall and what it means on Windows, I can see it potentially causing more confusion.

Context: Chocolatey manages Chocolatey packages (nupkg files), not software in Programs and Features directly. So if we are talking about an installer package (one that manages software in Programs and Features), right off the bat I feel that "remove" package should likely only get rid of the Chocolatey package and not also uninstall the software that the package may have put there. This does present additional discrepancies when we start talking about true packages where the runtime files are all inside the packaging folders. "Remove" there would remove the software as well. So for me to reduce confusion, one should consider "remove" and "uninstall" to be synonymous.

However I also want to consider the opposite of remove - "add". Would you see this as synonymous with "install"?

There is one other area as well - update vs upgrade. Some of those PMs use update relating to packages, some use upgrade. Then there are some that use both update and upgrade but they mean different things. We've went down the route of deprecating update for upgrade so that we can use update to update package indexes as we see that more comprehensive when we look at what other package managers do. This is a longer work in progress as we deprecated update about 3.5 years ago. Thoughts here as well?

TheCakeIsNaOH commented 5 years ago

However I also want to consider the opposite of remove - "add". Would you see this as synonymous with "install"?

I think pretty much all PMs that I am familiar with exclusively use install. I would not be opposed to having "add" as a synonym to 'install', but have no strong feelings either way.

We've went down the route of deprecating update for upgrade so that we can use update to update package indexes as we see that more comprehensive when we look at what other package managers do. This is a longer work in progress as we deprecated update about 3.5 years ago. Thoughts here as well?

This sounds good and makes sense.