跳转到内容

Windows程序包管理器

本页使用了标题或全文手工转换
维基百科,自由的百科全书

这是本页的一个历史版本,由Renamed user 5df18e49b15882112ccb6e8fdaa4b1cf留言 | 贡献2022年10月10日 (一) 12:38 历史编辑。这可能和当前版本存在着巨大的差异。

Windows Package Manager
Windows Package Manager
開發者微软公司
当前版本1.3.2091(2022年7月29日)
预览版本1.4.2161-preview(2022年8月6日)
源代码库github.com/microsoft/winget-cli
编程语言C++
操作系统Windows 10Windows 11
语言多语言
类型软件包管理器
许可协议MIT许可证
网站docs.microsoft.com/en-us/windows/package-manager/

Windows程序包管理器[1](英語:Windows Package Manager,也称winget)是微软Windows 10开发的一款自由开源软件包管理器。它由一个命令行实用程序(CLI)和一组安装应用程序的服务组成。 [2] [3]独立软件供应商可以将其作为软件包的分发渠道。

历史

2020年5月,Microsoft Build开发者大会上首次宣布了Windows Package Manager。[4][3]

决定开发Windows软件包管理器之前,其幕后团队探索了多种替代方案,并与各种知名的软件包管理器团队进行了交流,包括如Chocolatey、Scoop、Ninite,以及AppGet、Npackd和基于PowerShell的OneGet。 [3]

winget发布后,AppGet(一个类似的自由且开源的Windows程序包管理器)的开发者Keivan Beigi称[5] ,微软在2019年12月以收购AppGet并雇用他的名义与其交谈。在交谈之后,据称微软中断了与他的联系,直到winget发布的前一天才确认不会雇用Beigi。Beigi对微软未彰显AppGet所发挥的作用感到不满。winget发布后,Beigi宣布AppGet将于2020年8月停止维护。[6][7][8]微软之后则在一篇博客文章中做出回应,文中将Winget的许多功能归功于AppGet。[9][10]

概述

Winget工具支持基于EXEMSIXMSI的安装程序。 [11]公共存储库以YAML格式托管受支持应用程序的清单文件[12]

为减少恶意软件进入存储库和目标计算机的可能性,Windows软件包管理器使用了Microsoft SmartScreen、静态分析、SHA256哈希验证及其他流程。 [13][14]

winget客户端的源代码和社区化的清单文件存储库按MIT許可證发布,并在GitHub上托管。 [15][12]

示例

下列示例命令会搜索并安装Visual Studio Code——微软开源发布的一款代码编辑器。 [13]

PS C:\Users\Wikipedia> winget install vscode

参见

参考资料

  1. ^ KevinLaMS. Windows 程序包管理器. docs.microsoft.com. [2020-07-22]. (原始内容存档于2022-04-23) (中文(中国大陆)). 
  2. ^ Tom Warren. Microsoft’s new Windows Package Manager is already better than the Windows Store. The Verge. [2020-07-22]. (原始内容存档于2022-03-26). 
  3. ^ 3.0 3.1 3.2 Windows Package Manager Preview | Windows Command Line. [2020-07-22]. (原始内容存档于2022-05-02). 
  4. ^ Microsoft debuts Windows Package Manager for your dev environment | VentureBeat. [2020-07-22]. (原始内容存档于2022-04-25). 
  5. ^ Beigi, Keivan. The Day AppGet Died.. Keivan Beigi. 2020-05-25 [2020-06-25]. (原始内容存档于2022-04-15) (英语). 
  6. ^ Warren, Tom. Microsoft copied its new Windows Package Manager from rival AppGet, claims developer. The Verge (Vox Media). 28 May 2020 [June 1, 2020]. (原始内容存档于2022-04-30). 
  7. ^ Anderson, Tim. Embrace and kill? AppGet dev claims Microsoft reeled him in with talk of help and a job – then released remarkably similar package manager. The Register. May 28, 2020 [2020-06-01]. (原始内容存档于2022-04-25). 
  8. ^ Stewart, Ashley. A developer says Microsoft led him on about a job and buying his tool before going silent and releasing its own very similar service. Now he wants an explanation and credit for his work.. Business Insider. May 28, 2020 [June 1, 2020]. (原始内容存档于2022-04-25). 
  9. ^ Tung, Liam. Windows 10: Microsoft now credits maker of package manager it 'copied' – but offers no apology. ZDNet. June 1, 2020 [2020-06-02]. (原始内容存档于2022-04-26). 
  10. ^ Microsoft gives AppGet creator credit for Windows Package Manager - Neowin. [2020-07-22]. (原始内容存档于2022-04-23). 
  11. ^ Use the winget tool to install and manage applications | Microsoft Docs. [2020-07-22]. (原始内容存档于2022-05-12). 
  12. ^ 12.0 12.1 GitHub - microsoft/winget-pkgs: The Microsoft community Windows Package Manager manifest repository. [2020-07-22]. (原始内容存档于2022-05-17). 
  13. ^ 13.0 13.1 Tung, Liam. Microsoft's Windows Package Manager: This command-line tool can install all your apps. ZDNet. May 21, 2020 [2020-06-02]. (原始内容存档于2022-04-23). 
  14. ^ How to Use Windows Package Manager - Petri. [2020-07-22]. (原始内容存档于2022-03-26). 
  15. ^ GitHub - microsoft/winget-cli: Windows Package Manager CLI (a.k.a. winget). May 20, 2020 [2020-07-22]. (原始内容存档于2022-05-17). 

外部链接