Skip to content

upgrade --all installs packages that are already up to date #1075

@jpbnetley

Description

@jpbnetley

Brief description of your issue

When I run the winget upgrade --all winget tries to upgrade software that are already the latest.
In this example, it tried to update 2 software.

  • AIMP
  • Discord.

I should mention that I had these apps installed form their respected websites before I had winget installed.

Steps to reproduce

I opened the term application as admin, and executed winget upgrade --all
In the attached screenshot, you will see I have discord, and AIMP open with their versions before I ran the update.
winget upgrade

Discord's installed version is 1.0.9002
AIMP's installed version is 4.70.2251

Initially I thought it might be related to this issue: #696 (comment)
But when I checked the versions for both apps, I saw that winget lists the same versions that was installed.
To see the discord version, I ran: winget search discord
To see the AIMP version, I ran: winget search aimp

Expected behavior

I expected that when the upgrade command is executed, that software that are up to date doesn't try to download and install the same version.

Actual behavior

Up to date software gets re-downloaded and installed (in the example, Discord and AIMP).

Environment

[winget --info]
Windows Package Manager version: v1.0.11451
Windows: Windows.Desktop version: v10.0.19043.985
Package: Microsoft.DesktopAppInstaller version:  v1.11.11451.0

Any other software?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIt either shouldn't be doing this or needs an investigation.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions