Skip to content

Winget should only consider the highest version if multiple versions of the same package are installed #1543

Closed

Description

Description of the new feature/enhancement

There are some programs (like the .NET SDK) where a user may have multiple versions installed. Every time the user runs winget upgrade --all, winget sees that many of the installed versions are outdated and tries to upgrade each one of them. This (in the case of .NET SDK) will still keep the old versions but install many more copies of the new version. Each time winget upgrade --all is run, the problem intensifies. If winget that the latest version is already installed and does not try to upgrade the older versions, this problem will not occur.

Proposed technical implementation details (optional)

If winget finds that multiple versions of the same package from the same source are installed, it should only check the install with the highest version while checking if there is an upgrade. It should however display a warning that some outdated versions are also installed along with the latest version.

Activity

  1. added
    Issue-Feature
    on Oct 3, 2021
  2. ghost added
    Needs-Triage
    on Oct 3, 2021
  3. removed
    Needs-Triage
    on Oct 4, 2021
  4. arnavbhate commented on May 7, 2022

    @arnavbhate
    Author

    Fixed in v1.2.3411-preview #1838

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

    Issue-Feature

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions