Winget-cli: Can't install PowerShell

Created on 26 May 2020  路  4Comments  路  Source: microsoft/winget-cli

Brief description of your issue


I can't install PowerShell due to duplicate IDs. I think this might in part be due to PowerShell core changing name to PowerShell (I may be wrong). In part this is related to #292 but due to the duplicate IDs I see no way of selecting the desired package. as -v <version number> seems to be ignored

Steps to reproduce

  1. Run winget install powershell returns:

Expected behavior

PowerShell 7.0.1 installed

Actual behavior

Multiple apps found matching input criteria. Please refine the input.
Name               Id                           Version
---------------------------------------------------------------
PowerShell         Microsoft.PowerShell         7.0.1
Powershell Core    Microsoft.Powershell         7.0.0
PowerShell-Preview Microsoft.PowerShell-Preview 7.1.0-preview.3

Attempting to specify the desired version via winget install PowerShell -v 7.0.1 gives the same output

Specifying the Id rather than the Name via winget install Microsoft.PowerShell -v 7.0.1 once again just produces the list

Environment

[winget --info]
Windows Package Manager v0.1.41331 Preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.18363.836
Package: Microsoft.DesktopAppInstaller v1.0.41331.0
Needs-Triage

All 4 comments

@TomBrien Thanks for reporting this problem. However, I'd recommend closing this issue as this problem has been reported multiple times already:

  • #133
  • #282
  • #301

What you are looking for as an immediate solution is the --exact (-e) parameter until the user experience of the winget commands has been improved.

My bad. cheers

I'm seeing the same issue

C:\Users\emarq.REDMOND\Downloads\ICM> winget install --name PowerShell --id Microsoft.PowerShell
Multiple apps found matching input criteria. Please refine the input.
Name               Id                           Version
---------------------------------------------------------------
PowerShell         Microsoft.PowerShell         7.0.1
PowerShell-Preview Microsoft.PowerShell-Preview 7.1.0-preview.3
C:\Users\emarq.REDMOND\Downloads\ICM> winget install --name PowerShell --id Microsoft.PowerShell -v "7.0.1"
Multiple apps found matching input criteria. Please refine the input.

@ebmarquez This issue has already been closed and a solution can be found in my reply above as well as in the issues that I've linked to.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chrpai picture chrpai  路  3Comments

TravisSpomer picture TravisSpomer  路  3Comments

sob picture sob  路  5Comments

denelon picture denelon  路  4Comments

mdales picture mdales  路  3Comments