Skip to content

Ability to easily choose package #1830

Closed as not planned
Closed as not planned

Description

@DNM1008

Description of the new feature / enhancement

When an user typed winget install <package>, the program searches for the program and install it if there's only one candidate. If there are 2 or more candidates, it displays them then exits. The user must then copy the name/id of the program and run the program again.
Instead, it should outputs a numbered list of the matching candidates, then asks the user what package(s) that they want to install or uninstall, then continue installing/uninstalling

Proposed technical implementation details

When the user wants winget to uninstall/install packages with names that are similar to other candidates, the program should output a numbered list in the terminal, then asks the user to input the number(s) corresponding to the package(s) that they want to uninstall or install. An example would be:

winget install vlc

Multiple packages found matching input criteria
Number Name                      Id               Source
-----------------------------------------------------------
1              VLC              XPDM1ZW6815MQM    msstore
2              VLC media player VideoLAN.VLC      winget
Which one would you want to install?([1] or [2])

After which if the unser wants to install the second package, they just type "2" and hit Enter

Activity

  1. added
    Issue-FeatureThis is a feature request for the Windows Package Manager client.
    on Jan 3, 2022
  2. ghost added
    Needs-TriageIssue needs to be triaged
    on Jan 3, 2022
  3. SpecterShell commented on Mar 22, 2022

    @SpecterShell
    Contributor

    Take yay (A Pacman package manager wrapper for Arch Linux) as an example:
    image

  4. snow-jallen commented on Oct 23, 2023

    @snow-jallen

    Yes please!

  5. winchestercanal commented on Oct 22, 2024

    @winchestercanal

    I want this on my desk, and I want it now!! hahahah

  6. 32n1 commented on Dec 4, 2024

    @32n1

    Bitte. Please. Por favor. S'il vous plaît. Per favore. Proszę. Пожалуйста. Lütfen. 请. Por favor. कृपया. Harap. Prosím. Lūdzu. Vänligen. παρακαλώ. Kérlek. Vă rog. Lütfen. Ju lutem.

  7. denelon commented on Jul 26, 2026

    @denelon
    Collaborator

    Thanks for filing this. Closing as a duplicate of #301, which now captures this same request — an interactive numbered selection prompt when a query matches multiple packages — as the canonical issue. Consolidating the discussion there keeps the signal in one place.

    If this is important to you, please add a 👍 to #301 so we can gauge interest.

    Drafted with the help of GitHub Copilot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-InputIssue related to input commands or argumentsArea-OutputIssue related to CLI outputCommand-InstallIssue related to WinGet InstallIssue-FeatureThis is a feature request for the Windows Package Manager client.

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions