You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
winget upgrade should have the option to hide packages with Unknown version from output #1692
winget upgrade currently shows packages with a version of Unknown as being out of date. Since the version is Unknown the package may or may not be out of date. It would be useful to have the option to hide packages with an Unknown version or allow for the option to list only unknown packages with the upgrade command defaulting to not showing these Unknown version packages.
Proposed technical implementation details
No suggestion.
Reacted by Easton Pillay, Olav Rønnestad Birkeland, Bruno C. Rodrigues, Jan Klass, hjm7, Aleksandr, KD, Felipe Santos, uyfan, Scott Driggers and 3 more
Maybe this should just be a argument, --include-unknown, which enables unknown packages to be upgraded? By default if winget upgrade finds a installed app that doesn't publish version info to the ARP table it won't attempt an upgrade.
Wouldn't be too hard to implement if there's agreement.
Reacted by Max Wertheim, robross0606, Simon, Henry and tomsik-radek
Maybe this should just be a argument, --include-unknown, which enables unknown packages to be upgraded? By default if winget upgrade finds a installed app that doesn't publish version info to the ARP table it won't attempt an upgrade.
Wouldn't be too hard to implement if there's agreement.
I even think that by default such packages should be ignored on winget upgrade --all, but still shown on winget upgrade so that the user is at least aware of it.
Reacted by Scott Driggers, Moheshwar Amarnath Biswas and professionaltart
Perhaps a setting? I would (personally) prefer winget not to show unknown version apps in the upgrade table by default, since 99/100 times "Unknown" ends up meaning "It updates itself", but I can understand that some people may think differently.
It also may be a confusing user experience for a app to be listed for upgrade, then when the user wants to upgrade it and runs winget upgrade --all as they usually would, it doesn't get upgraded since they didn't pass the additional option. A setting that tells winget to use the current behavior (when in doubt, upgrade) that is enforced for both flows would make a little more sense to me.
I even think that by default such packages should be ignored on winget upgrade --all, but still shown on winget upgrade so that the user is at least aware of it.
I disagree since the point of winget upgrade is to see a list of packages that have available updates. If the version is "Unknown" it is not certain whether it has an available update or not. In regards to whether or not the user should be aware, they can use the --include-unknown flag mentioned by Easton Pillay (@jedieaston) if they wish to know about these packages.
--include-unknown is now in the initial 1.3 preview, available in GitHub Releases:
PS C:\Windows\system32> winget install WinDirStat
Found WinDirStat [WinDirStat.WinDirStat] Version 1.1.2
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://sourceforge.net/projects/windirstat/files/windirstat/1.1.2%20installer%20re-release%20%28more%20languages%21%29/windirstat1_1_2_setup.exe/download
██████████████████████████████ 630 KB / 630 KB
Successfully verified installer hash
Starting package install...
Successfully installed
PS C:\Windows\system32> winget upgrade
Name Id Version Available Source
--------------------------------------------------------------
Microsoft Edge Microsoft.Edge 92.0.902.67 98.0.1108.50 winget
calibre calibre.calibre 4.16.0 5.36.0 winget
2 upgrades available.
1 package has a version number that cannot be determined. Use "--include-unknown" to see all results.
PS C:\Windows\system32> winget upgrade --include-unknown
Name Id Version Available Source
--------------------------------------------------------------------
Microsoft Edge Microsoft.Edge 92.0.902.67 98.0.1108.50 winget
WinDirStat WinDirStat.WinDirStat Unknown 1.1.2 winget
calibre calibre.calibre 4.16.0 5.36.0 winget
3 upgrades available.
PS C:\Windows\system32>
Do you feel like this resolves the issue, or do we still need a setting?
--include-unknown is now in the initial 1.3 preview, available in GitHub Releases:
PS C:\Windows\system32> winget install WinDirStat
Found WinDirStat [WinDirStat.WinDirStat] Version 1.1.2
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://sourceforge.net/projects/windirstat/files/windirstat/1.1.2%20installer%20re-release%20%28more%20languages%21%29/windirstat1_1_2_setup.exe/download
██████████████████████████████ 630 KB / 630 KB
Successfully verified installer hash
Starting package install...
Successfully installed
PS C:\Windows\system32> winget upgrade
Name Id Version Available Source
--------------------------------------------------------------
Microsoft Edge Microsoft.Edge 92.0.902.67 98.0.1108.50 winget
calibre calibre.calibre 4.16.0 5.36.0 winget
2 upgrades available.
1 package has a version number that cannot be determined. Use "--include-unknown" to see all results.
PS C:\Windows\system32> winget upgrade --include-unknown
Name Id Version Available Source
--------------------------------------------------------------------
Microsoft Edge Microsoft.Edge 92.0.902.67 98.0.1108.50 winget
WinDirStat WinDirStat.WinDirStat Unknown 1.1.2 winget
calibre calibre.calibre 4.16.0 5.36.0 winget
3 upgrades available.
PS C:\Windows\system32>
Do you feel like this resolves the issue, or do we still need a setting?
This is great!!! Thank you! You guys are doing amazing work!!!!
Activity
jedieaston commentedon Nov 28, 2021
Maybe this should just be a argument,
--include-unknown, which enables unknown packages to be upgraded? By default ifwinget upgradefinds a installed app that doesn't publish version info to the ARP table it won't attempt an upgrade.Wouldn't be too hard to implement if there's agreement.
MrBeeMovie commentedon Nov 29, 2021
I would be fine with this solution.
felipecrs commentedon Nov 29, 2021
I even think that by default such packages should be ignored on
winget upgrade --all, but still shown onwinget upgradeso that the user is at least aware of it.jedieaston commentedon Nov 29, 2021
Perhaps a setting? I would (personally) prefer winget not to show unknown version apps in the upgrade table by default, since 99/100 times "Unknown" ends up meaning "It updates itself", but I can understand that some people may think differently.
It also may be a confusing user experience for a app to be listed for upgrade, then when the user wants to upgrade it and runs
winget upgrade --allas they usually would, it doesn't get upgraded since they didn't pass the additional option. A setting that tells winget to use the current behavior (when in doubt, upgrade) that is enforced for both flows would make a little more sense to me.MrBeeMovie commentedon Nov 29, 2021
I disagree since the point of
winget upgradeis to see a list of packages that have available updates. If the version is "Unknown" it is not certain whether it has an available update or not. In regards to whether or not the user should be aware, they can use the--include-unknownflag mentioned by Easton Pillay (@jedieaston) if they wish to know about these packages.felipecrs commentedon Nov 29, 2021
I mean like a new column:
Then:
felipecrs commentedon Nov 29, 2021
It's cool for me too.
jedieaston commentedon Feb 16, 2022
--include-unknown is now in the initial 1.3 preview, available in GitHub Releases:
Do you feel like this resolves the issue, or do we still need a setting?
MrBeeMovie commentedon Feb 16, 2022
This is great!!! Thank you! You guys are doing amazing work!!!!