-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Issues when more than one package exist for winget install (ambigous names) #478
Comments
I now understand that -v / --version is to fetch and display the version of the tool winget. |
What exactly is one supposed to do here?
I see no way to pare this down to anymore |
@tommck are you asking me? |
No, was mostly ranting in support of you :) Turns out you have to use
|
-e is not even documented https://docs.microsoft.com/en-us/windows/package-manager/winget/ |
as said -v is more logical to pick a version and -v is a duplicate of --info. Team, you're going the same path as for Terminal lads remote related design question / issue |
@Karl-WE You seem to be new to command line programs. To install a version other than latest you use: # winget install --exact <id> --version <version number>
winget install Microsoft.dotnet --version 3.1.301 --exact
Found .NET Core [Microsoft.dotnet]
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://download.visualstudio.microsoft.com/download/pr/4e88f517-196e-4b17-a40c-2692c689661d/eed3f5fca28262f764d8b650585a7278/dotnet-sdk-3.1.301-win-x64.exe
██████████████████████████████ 124 MB / 124 MB
Successfully verified installer hash
Installing ...
Successfully installed! |
@megamorf I am not new to this megamorf. winget --version will output the version of the tool Given the logic that you can enter -? at any level reminds me much of Cisco IOS and speaking for Windows
but it is not overly very common in Windows to have the ability to specify /? any time with the previous level of commands. Some have it some have not. Thanks for giving me the idea winget would favour this. Powershell does not offer a context sensitive help, quite unfortunately. Before this dupe is entirely wasted time, please let us have a PR to make the winget ? more pointing out to this. Still I see a inconsistency with the commandline options, we might discuss this in a new bug / feature request: example winget ? = help (fallback) next level: winget install --? works Albeit help says: I would rather see it here Die folgenden Optionen stehen zur Verfügung: Mind we are still on Windows, and -- commandlines are not common here. For a new tool like winget, which I see a bright future and major positive impact, we should not be dev-oriented but user oriented striving for consistency and clear and concise UX without reading docs, eventually with command lines everything should to work /? or ? see also, I refrain, microsoft/terminal#4632 (comment) IF we want to drop /? in favour for -? or --? or even ? I am absolutely ok with that Then please leave a remark when winget /? is issued "please use -? or --? for help" |
Duplicate of #292 |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
-->
ambigous software packages won't install is -v is specified. Here PowerShell 7.x
Steps to reproduce
open Powershell 5.1/ 7.x or Terminal
winget install Powershell
Output: 2 possible products tagged as powershell the correct install name would be Microsoft.Powershell and ...Powershell-Preview
Specifying the full ID give same list
Specifying -v 7.0.2
still will not install PowerShell 7.0.2 via winget but throws 2 possible packages still
Expected behavior
issueing
winget install powershell -v 7.0.2 should install PowerShell
winget install Microsoft.Powershell -v 7.0.2 should install PowerShell
same with preview tags, ID and version
Actual behavior
just outputs 2 versions are available no selection, installation possible.
Environment
The text was updated successfully, but these errors were encountered: