winget
约 2 分钟阅读
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\WindowsAppswinget 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
关联信息
反向链接、本文链接的其他页面和外部资料。
反向链接
- Windows Debloat笔记 · WinGet
减少广告、推荐内容、后台自启动,移除不需要的预装应用 · 保留 Defender、Windows Update、Store、App Installer、WebView2 和运行库 · 优先使用系统设置;批量调整再使用 PowerShell 或 Debloat 工具
- Windows Setup笔记 · WinGet
目标 · 将新安装的 Windows 10/11 配置为可通过 SSH 维护的开发机 · 使用 WinGet 安装 machine scope 的基础工具 · 保留可重复执行、可验证、重启后可继续的初始化过程 · 相关文档 · Get Started