How to upgrade winget itself
工具 工具 34

First, open the Release Page of microsoft/winget-cli GitHub Repository, grab the latest download link with “.msixbundle” extension, and copy it to your clipboard.

You just need to copy the download link without downloading it.

Remember, if you’re on your production environment, please don’t install the releases with “Pre-release” lable. Such releases can be buggy and may encounter unusual errors & issues.

A screenshot from winget-cli GitHub Release Page

Turn up Windows Terminal (Administrator) with PowerShell.

PowerShell screenshot (with Administrator)

Type in the following command. Remember to replace URI-TO-YOUR-PREV-COPIED LINK with your copied link.

PS C:\Users\WrOffi> Add-AppxPackage -Path 'URI-TO-YOUR-PREV-COPIED LINK'
PS C:\Users\WrOffi> # Example: Add-AppxPackage -Path 'https://github.com/microsoft/winget-cli/releases/download/v1.6.2721/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle'Copy

After that, the App Installer will automatically finish the following task.

Screenshot of installing winget latest version with PowerShell

Finally, you can check the version of winget with the following command.

PS C:\Users\WrOffi> winget --version
v1.6.2721Copy


How to upgrade winget itself
https://blog.xiqi.site/archives/1705849919468
作者
管理员
发布于
更新于
许可