winget
:::tips Why Windows Native
- 能做 Windows 自动化, 能使用原生 API
- 方便交付产出
- 资源占用更少
- IO 更快
- golang + cgo 开发起来很顺畅
:::
- Windows 可直接使用
- 类似于 macOS brew
- source
- winget
- msstore
# 先安装 VC++ 避免失败
Add-AppxPackage -Path https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx
# Power Shell 安装 winget
# Windows 10 1809 / build 17763
Add-AppxPackage -Path https://aka.ms/getwinget
winget --version
winget --info
& "$env:LOCALAPPDATA\Microsoft\WindowsApps\winget.exe" --info
# PATH
# %LOCALAPPDATA%\Microsoft\WindowsApps
winget source reset --force
winget source update
winget search --id Microsoft.PowerShell --exact --source winget
winget install --id Microsoft.PowerShell --source winget
winget install Warp.Warp Zellij Git.Git bottom Casey.Just
winget install --id Python.Python.3.13 --source winget --accept-source-agreements --accept-package-agreements
winget install --id astral-sh.uv --source winget --accept-source-agreements --accept-package-agreements
winget upgrade --all --accept-source-agreements --accept-package-agreements
# for gsudo
winget install --id gerardog.gsudo --exact --source winget --scope machine
| id | cmd | notes |
|---|---|---|
| Tencent.WeCom | ||
| Tencent.WeChat | ||
| Tencent.WeChat.Universal | 4.x | |
| Zellij.Zellij | zellij | |
| Git.Git | git | |
| bufbuild.buf | buf | |
| SQLite.SQLite | sqlite | |
| zyedidia.micro | micro | |
| Fastfetch-cli.Fastfetch | fastfetch | |
| aristocratos.btop4win | btop | |
| Clement.bottom | btm |
FAQ
- Winget 会安装 symlink
...\WinGet\Links, 会导致 ssh 进入可能会导致没办法访问
0x8a15000f : 缺少源所需的数据
winget install --id Microsoft.PowerShell --source winget
打开源时失败;如果问题仍然存在,请尝试"source reset"命令。
执行此命令时发生意外错误:
0x8a15000f : 缺少源所需的数据
OpenSSH 非交互 会话调用 Windows AppX 部署 API 时的 0x80070520