1. Introduction
-
If you want to
window
install an easy-to-use package management toolmac
onhomebrew
,window
you should think twice and use the official onewinget
.
2. Installation process and stepping pit record
-
Press
win + x
to selectPowershell(管理员)
the mode to opencmd
, and execute the following command:$ winget
The result is an error:
winget : 无法将“winget”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径 正确,然后再试一次。 所在位置 行:1 字符: 1 + winget + ~~~~~~ + CategoryInfo : ObjectNotFound: (winget:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
-
So I went to
微软商店(microsoft store)
search insidewinget
and found that it was installed. It may be that the version is too old and needs to be updated. -
There are two ways to update
-
A store point update button
An error will be reported when updating in the mall
更新失败,Window 禁止更新
, and the system’s built-in intractable diseases fail to be repaired. Here, you need to manually enable the prohibit update permission.1.
win + r
, enterservices.msc
, open the service, findWindows Update
and double-click to open, change the startup type to自动
, when you click OK, it prompts拒绝访问
Attachment: Windows update cannot be started, and prompts "Access Denied" . After modification, start the service.2. Then reopen the store, enter
winget
the software and you will see the update button, just click update. -
One is to go to Gethub winget-cli to download the latest
preview
package, justxxx.msixbundle
download the file, and then install it. (Attachment: how (how) to download and install the winget window application installer on github )The way to download the installation package will report an error
安装软件失败,应用安装程序无法安装应用包相关项。请向开发人员索要 应用
, which is actually a problem of prohibiting updates. Attachment: The application installer cannot install application package related items. Please ask the developer for the app package. How to solve? , solve the update according to the update method above.After solving the prohibition of updating, just install it again, but it is recommended to install it in the mall to save trouble.
-