Skip to content
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

Make "Update" an alias for "Upgrade" #1026

Closed
BruceHarrison opened this issue May 30, 2021 · 7 comments · Fixed by #2390
Closed

Make "Update" an alias for "Upgrade" #1026

BruceHarrison opened this issue May 30, 2021 · 7 comments · Fixed by #2390
Labels
Issue-Feature This is a feature request for the Windows Package Manager client.
Milestone

Comments

@BruceHarrison
Copy link

Greetings,

Is it possible to make "update" an alias for the "upgrade" command?

I keep thinking that the command is: WinGet update SomeApp

I doubt I am the only one making this mistake.

Appreciatively,
-Bruce

@ghost ghost added the Needs-Triage Issue need to be triaged label May 30, 2021
@BruceHarrison BruceHarrison changed the title Alias for upgrade (update) Make "Update" an alias for "Upgrade" May 30, 2021
@pjaj
Copy link

pjaj commented May 30, 2021

I was thinking of suggesting the same.

@spavaonica
Copy link

Usually "update" means "look at the repo servers to see what upgrades are available" and "upgrade" means "install the latest version of the software that your computer knows about". So usually you would update and then upgrade to install the newest version, or upgrade to install a specific version. For some weird reason, Microsoft decided to make "upgrade" do both and not allow an "update" option, which means you'll always need internet and are forced to install the newest available version (which should be fine for 97% of people, but those 3% are really left out)

@denelon
Copy link
Contributor

denelon commented Jun 1, 2021

We had quite the discussion around "upgrade" vs. "update". The "update" verb was used for refreshing the PreIndexed package cache with pointers to manifests. It's used by "search" to see which packages are available. The overwhelming majority preferred "upgrade". We are likely to address this topic again as we work towards implementing native PowerShell support.

@denelon denelon added Issue-Feature This is a feature request for the Windows Package Manager client. and removed Needs-Triage Issue need to be triaged labels Jun 1, 2021
@denelon
Copy link
Contributor

denelon commented Jun 1, 2021

The behavior for "upgrade" was modified since we didn't have support for "pin" to lock a version of a package and prevent it from being upgraded. If you winget upgrade you will see a list of packages that may be upgraded. You may use the --version argument to specify the version you want to upgrade to. You can winget show <package> --versions to see the list of versions available from a source.

@pjaj
Copy link

pjaj commented Jun 1, 2021

I think the problem here is the difference between the developers who use very specific interpretations of the words and the end user who does not. There are many programs that offer to "update" themselves when a new version is available or at least have a "check for updates" option. There are other utilities that are designed to "update" programs and drivers etc. I've never seen one of them offer to "upgrade" or with "upgrade" in their name.
Even MS's own site only talks about "update" not "upgrade" for most things.
Are you developing a utility that satisfies the aesthetics of the developers or one that does not confuse the end users?
It sure as heck confused me as, after 60 years of using computers, I automatically typed -update the first time I tried it.

@iDolmatov
Copy link

iDolmatov commented Jun 1, 2021

Met with a similar problem of understanding. The program used both words for different tasks. In the Russian version, one word is used. The differences are only in its form.
https://user-images.githubusercontent.com/19782385/120371231-f3bb9180-c32e-11eb-80a3-9a5be911f504.png
https://user-images.githubusercontent.com/19782385/120371272-fd44f980-c32e-11eb-8599-c5f753fd116d.png
Edit: Disabled images preview

There is also a difference in Linux.
https://help.ubuntu.com/community/AptGet/Howto
See "Maintenance commands".
It is logical to do the same in order to update the database without searching. For example, for the list and show commands.

@Trenly Trenly mentioned this issue Jul 28, 2022
2 tasks
@denelon denelon modified the milestones: Backlog-Client, v1.4-Client Jul 29, 2022
@ghost ghost added the In-PR Issue related to a PR label Jul 29, 2022
@Trenly
Copy link
Contributor

Trenly commented Jul 29, 2022

If anyone has any strong opinions on aliases, i.e, if any others should be added, please post a comment on the linked PR

@ghost ghost added Resolution-Fix-Committed and removed In-PR Issue related to a PR labels Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Feature This is a feature request for the Windows Package Manager client.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants