Winget question


Murray Sobol

Well-known member
Local time
7:06 AM
Posts
41
OS
Windows 11
When I get a notification that updates are available this is what I see:
1720531989576.png
I run the updates, they are marked as completed.
Then a day or so later, I get another request to run the same updates.
It seems, to me, that when the updates have been done successfully a step is missing that would mark those updates have been run so that they would no longer appear in the next update.
I hope you understand my issue.
Murray
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    MSI
    CPU
    Intel i7-10750H CPU @2.60 GHz, 2592 MHz, 6 cores
    Memory
    32GB
The version numbers are different between the one you have currently and the one available.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC12WSHi7
    CPU
    12th Gen Intel Core i7-1260P, 2100 MHz
    Motherboard
    NUC12WSBi7
    Memory
    64 GB
    Graphics Card(s)
    Intel Iris Xe
    Sound Card
    built-in Realtek HD audio
    Monitor(s) Displays
    Dell U3219Q
    Screen Resolution
    3840x2160 @ 60Hz
    Hard Drives
    Samsung SSD 990 PRO 1TB
    Keyboard
    CODE 104-Key Mechanical Keyboard with Cherry MX Clears
  • Operating System
    Linux Mint 21.2 (Cinnamon)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC8i5BEH
    CPU
    Intel Core i5-8259U CPU @ 2.30GHz
    Memory
    32 GB
    Graphics card(s)
    Iris Plus 655
    Keyboard
    CODE 104-Key Mechanical Keyboard - Cherry MX Clear
pseymour:
I don't think so; if the update was run successfully, then why is the version number not also updated??
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    MSI
    CPU
    Intel i7-10750H CPU @2.60 GHz, 2592 MHz, 6 cores
    Memory
    32GB
You don't think so? It's clearly showing two different version numbers in your screenshot. If you run those updates, does the version number change to 7.0.410 for SDK 7, and 6.0.423 for SDK 6? These SDKs are updated at least once a month, sometimes more.



.NET 7 is end-of-life, by the way.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC12WSHi7
    CPU
    12th Gen Intel Core i7-1260P, 2100 MHz
    Motherboard
    NUC12WSBi7
    Memory
    64 GB
    Graphics Card(s)
    Intel Iris Xe
    Sound Card
    built-in Realtek HD audio
    Monitor(s) Displays
    Dell U3219Q
    Screen Resolution
    3840x2160 @ 60Hz
    Hard Drives
    Samsung SSD 990 PRO 1TB
    Keyboard
    CODE 104-Key Mechanical Keyboard with Cherry MX Clears
  • Operating System
    Linux Mint 21.2 (Cinnamon)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC8i5BEH
    CPU
    Intel Core i5-8259U CPU @ 2.30GHz
    Memory
    32 GB
    Graphics card(s)
    Iris Plus 655
    Keyboard
    CODE 104-Key Mechanical Keyboard - Cherry MX Clear
You're misunderstanding me, AFTER the update is done, why is the version number NOT updated??
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    MSI
    CPU
    Intel i7-10750H CPU @2.60 GHz, 2592 MHz, 6 cores
    Memory
    32GB
What happens when you run winget without -h (silent mode), and watch what's it doing?
 

My Computer

System One

  • OS
    Windows 7
You're misunderstanding me, AFTER the update is done, why is the version number NOT updated??
I'm not misunderstanding. All I have to go on is your screenshot. When you say you ran the updates, you didn't specify any version numbers, which is why I asked what happens to the version numbers when you run those listed updates.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC12WSHi7
    CPU
    12th Gen Intel Core i7-1260P, 2100 MHz
    Motherboard
    NUC12WSBi7
    Memory
    64 GB
    Graphics Card(s)
    Intel Iris Xe
    Sound Card
    built-in Realtek HD audio
    Monitor(s) Displays
    Dell U3219Q
    Screen Resolution
    3840x2160 @ 60Hz
    Hard Drives
    Samsung SSD 990 PRO 1TB
    Keyboard
    CODE 104-Key Mechanical Keyboard with Cherry MX Clears
  • Operating System
    Linux Mint 21.2 (Cinnamon)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC8i5BEH
    CPU
    Intel Core i5-8259U CPU @ 2.30GHz
    Memory
    32 GB
    Graphics card(s)
    Iris Plus 655
    Keyboard
    CODE 104-Key Mechanical Keyboard - Cherry MX Clear
It seems, to me, that when the updates have been done successfully a step is missing
Have you restarted? Since you have a laptop, it might have hibernated instead. Try to force restart:
Code:
shutdown /r /f /t 0
 

My Computer

System One

  • OS
    Windows 11 Home
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen 5 8600G (07/24)
    Motherboard
    ASROCK B650M-HDV/M.2 3.09 (07/24)
    Memory
    2x32GB Kingston FURY DDR5 5600 MHz CL36 @4800 CL40 (07/24)
    Graphics Card(s)
    ASROCK Radeon RX 6600 Challenger D 8G @60FPS (08/24)
    Sound Card
    Creative Sound BlasterX AE-5 Plus (05/24)
    Monitor(s) Displays
    24" Philips 24M1N3200ZS/00 (05/24)
    Screen Resolution
    1920×1080@165Hz via DP1.4
    Hard Drives
    Kingston KC3000 NVMe 2TB (05/24)
    ADATA XPG GAMMIX S11 Pro 512GB (07/19)
    PSU
    Seasonic Core GM 550 Gold (04/24)
    Case
    Fractal Design Define 7 Mini with 3x Noctua NF-P14s/12@555rpm (04/24)
    Cooling
    Noctua NH-U12S with Noctua NF-P12 (04/24)
    Keyboard
    HP Pavilion Wired Keyboard 300 (07/24) + Rabalux 76017 Parker (01/24)
    Mouse
    Logitech M330 Silent Plus (04/23)
    Internet Speed
    500/100 Mbps via RouterOS (05/21) & TCP Optimizer
    Browser
    Edge & Brave for YouTube & LibreWolf for FB
    Antivirus
    NextDNS
    Other Info
    Backup: Hasleo Backup Suite (PreOS)
    Headphones: Sennheiser RS170 (09/10)
    Phone: Samsung Galaxy Xcover 7 (02/24)
    Chair: Huzaro Force 4.4 Grey Mesh (05/24)
    Notifier: Xiaomi Mi Band 9 Milanese (10/24)
    2nd Monitor: AOC G2460VQ6 @75Hz (02/19)
Here's the output:
C:\>winget upgrade --all
Name Id Version Available Source
--------------------------------------------------------------------------------
Microsoft .NET SDK 7.0.317 (x64) Microsoft.DotNet.SDK.7 7.0.317 7.0.410 winget
Microsoft .NET SDK 6.0.321 (x64) Microsoft.DotNet.SDK.6 6.0.321 6.0.423 winget
2 upgrades available.

(1/2) Found Microsoft .NET SDK 7.0 [Microsoft.DotNet.SDK.7] Version 7.0.410
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://dotnetcli.azureedge.net/dotnet/Sdk/7.0.410/dotnet-sdk-7.0.410-win-x64.exe
██████████████████████████████ 218 MB / 218 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(2/2) Found Microsoft .NET SDK 6.0 [Microsoft.DotNet.SDK.6] Version 6.0.423
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://dotnetcli.azureedge.net/dotnet/Sdk/6.0.423/dotnet-sdk-6.0.423-win-x64.exe
██████████████████████████████ 196 MB / 196 MB
Successfully verified installer hash
Starting package install...
Successfully installed

2 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results.

It looks like, to me, that the 2 modules were updated.


I am curious, though, about the last message: 2 package(s) have version numbers that cannot be determined.

How would I determine which those 2 packages are??
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    MSI
    CPU
    Intel i7-10750H CPU @2.60 GHz, 2592 MHz, 6 cores
    Memory
    32GB
Hi TairikuOkami
I tried the shutdown command as you suggested but I get the same output as in the above post.
Any ideas re: 2 package(s) have version numbers that cannot be determined.

How would I determine which packages they are?
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    MSI
    CPU
    Intel i7-10750H CPU @2.60 GHz, 2592 MHz, 6 cores
    Memory
    32GB
I've noticed that winget struggles in certain circumstances such as having a USER and SYSTEM install of the same application which causes winget to show multiple versions and both try and fail to upgrade or when an application installer is garbage and doesn't either update or remove an old uninstall string from the registry.
 

My Computer

System One

  • OS
    Windows 11
I am curious, though, about the last message: 2 package(s) have version numbers that cannot be determined.
How would I determine which those 2 packages are??
I use this:
Code:
winget upgrade --all -h --include-unknown --accept-package-agreements --accept-source-agreements
 

My Computer

System One

  • OS
    Windows 11 Home
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen 5 8600G (07/24)
    Motherboard
    ASROCK B650M-HDV/M.2 3.09 (07/24)
    Memory
    2x32GB Kingston FURY DDR5 5600 MHz CL36 @4800 CL40 (07/24)
    Graphics Card(s)
    ASROCK Radeon RX 6600 Challenger D 8G @60FPS (08/24)
    Sound Card
    Creative Sound BlasterX AE-5 Plus (05/24)
    Monitor(s) Displays
    24" Philips 24M1N3200ZS/00 (05/24)
    Screen Resolution
    1920×1080@165Hz via DP1.4
    Hard Drives
    Kingston KC3000 NVMe 2TB (05/24)
    ADATA XPG GAMMIX S11 Pro 512GB (07/19)
    PSU
    Seasonic Core GM 550 Gold (04/24)
    Case
    Fractal Design Define 7 Mini with 3x Noctua NF-P14s/12@555rpm (04/24)
    Cooling
    Noctua NH-U12S with Noctua NF-P12 (04/24)
    Keyboard
    HP Pavilion Wired Keyboard 300 (07/24) + Rabalux 76017 Parker (01/24)
    Mouse
    Logitech M330 Silent Plus (04/23)
    Internet Speed
    500/100 Mbps via RouterOS (05/21) & TCP Optimizer
    Browser
    Edge & Brave for YouTube & LibreWolf for FB
    Antivirus
    NextDNS
    Other Info
    Backup: Hasleo Backup Suite (PreOS)
    Headphones: Sennheiser RS170 (09/10)
    Phone: Samsung Galaxy Xcover 7 (02/24)
    Chair: Huzaro Force 4.4 Grey Mesh (05/24)
    Notifier: Xiaomi Mi Band 9 Milanese (10/24)
    2nd Monitor: AOC G2460VQ6 @75Hz (02/19)
Hi Garlin:
Here is the output:
C:\>winget upgrade --all --include-unknown
Name Id Version Available Source
--------------------------------------------------------------------------------
Microsoft .NET SDK 7.0.317 (x64) Microsoft.DotNet.SDK.7 7.0.317 7.0.410 winget
Microsoft .NET SDK 6.0.321 (x64) Microsoft.DotNet.SDK.6 6.0.321 6.0.423 winget
2 upgrades available.

(1/2) Found Microsoft .NET SDK 7.0 [Microsoft.DotNet.SDK.7] Version 7.0.410
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://dotnetcli.azureedge.net/dotnet/Sdk/7.0.410/dotnet-sdk-7.0.410-win-x64.exe
██████████████████████████████ 218 MB / 218 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(2/2) Found Microsoft .NET SDK 6.0 [Microsoft.DotNet.SDK.6] Version 6.0.423
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://dotnetcli.azureedge.net/dotnet/Sdk/6.0.423/dotnet-sdk-6.0.423-win-x64.exe
██████████████████████████████ 196 MB / 196 MB
Successfully verified installer hash
Starting package install...
Successfully installed

Notice that the message about "2 package(s) have version numbers that cannot be determined." has disappeared.

Here's something interesting, I tried to determine the version of ,NET SDK 6.0 using this command: winget show "Microsoft.DotNet.SDK.6"

Here is the output from that command:
Found Microsoft .NET SDK 6.0 [Microsoft.DotNet.SDK.6]
Version: 6.0.423
Publisher: Microsoft Corporation
Moniker: dotnet-sdk-6
Description: .NET is a free, cross-platform, open-source developer platform for building many different types of applications.
Homepage: .NET | Build. Test. Deploy.
License: MIT
Tags:
.NET
.NET Core
dotnet
net
C#
csharp
F#
fsharp
VB
Visual Basic
SDK
Installer:
Installer Type: burn
Installer Url: https://dotnetcli.azureedge.net/dotnet/Sdk/6.0.423/dotnet-sdk-6.0.423-win-x64.exe
Installer SHA256: 304ae842ba21ce5166827268591660fac6e29be9413587617c519fb3882f9104
Offline Distribution Supported: true

If I'm reading the above output correctly, doesn't it show the version to be 6.0.423, i.e. the version I expected it to be AFTER the upgrade.

But, if I run the upgrade a second time, it still tries to upgrade from the old version to the new version.

Very confusing, isn't it!!
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    MSI
    CPU
    Intel i7-10750H CPU @2.60 GHz, 2592 MHz, 6 cores
    Memory
    32GB
I don't develop with .NET, but don't you have to reboot before a new SDK takes effect?
 

My Computer

System One

  • OS
    Windows 7
Hi TairikuOkami
I tried your command: winget upgrade --all -h --include-unknown --accept-package-agreements --accept-source-agreements
but still get the same results, the 2 packages are still being shown as requiring updates if I run the command a second time.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    MSI
    CPU
    Intel i7-10750H CPU @2.60 GHz, 2592 MHz, 6 cores
    Memory
    32GB
I don't develop with .NET, but don't you have to reboot before a new SDK takes effect?
I've tried rebooting with this command: shutdown /r /f /t 0 but it doesn't change anything.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    MSI
    CPU
    Intel i7-10750H CPU @2.60 GHz, 2592 MHz, 6 cores
    Memory
    32GB
I dunno. Since you're comfortable with winget, uninstall one of the two SDK's as an experiment. Check if it's completely gone, then install it again. Maybe the winget metadata is broken.
 

My Computer

System One

  • OS
    Windows 7
If you follow this thread: Winget question You will see that I am having problems with Winget.

Is it possible that this is a bug within the product and, if so, can it be corrected??

Or, is there ANOTHER command format ( I have tried multiple variations) that I could try??


Thanks
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    MSI
    CPU
    Intel i7-10750H CPU @2.60 GHz, 2592 MHz, 6 cores
    Memory
    32GB

Latest Support Threads

Back
Top Bottom