跳转到内容

Windows程序包管理器

维基百科,自由的百科全书

这是本页的一个历史版本,由YFdyh000留言 | 贡献2020年7月22日 (三) 16:11 外部链接编辑。这可能和当前版本存在着巨大的差异。

Windows Package Manager
Windows Package Manager
開發者微软公司
当前版本
  • 1.9.2151-preview(2024年8月7日;测试版本)[1]
  • 1.9.25200(2024年11月12日;穩定版本)[2]
編輯維基數據鏈接
预览版本v0.1.41821 Preview(2020年6月30日,​4年前​(2020-06-30[3]
源代码库github.com/microsoft/winget-cli
编程语言C++
操作系统Windows 10
语言多语言
类型软件包管理器
许可协议MIT许可证
网站docs.microsoft.com/en-us/windows/package-manager/

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

历史

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

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

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

概述

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

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

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

示例

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

PS C:\Users\Wikipedia> winget install vscode

参见

参考资料

  1. ^ Release Windows Package Manager 1.9.2151-preview. GitHub. 2024年8月7日 [2024年8月20日]. 
  2. ^ Windows Package Manager 1.9.25200. GitHub. 2024年11月12日 [2024年12月15日]. 
  3. ^ Tags · microsoft/winget-cli · GitHub. GitHub. [2020-07-11] (英语). 
  4. ^ KevinLaMS. Windows 程序包管理器. docs.microsoft.com. [2020-07-22] (中文(中国大陆)). 
  5. ^ Tom Warren. Microsoft’s new Windows Package Manager is already better than the Windows Store. The Verge. 
  6. ^ 6.0 6.1 6.2 Windows Package Manager Preview | Windows Command Line
  7. ^ Microsoft debuts Windows Package Manager for your dev environment | VentureBeat
  8. ^ Beigi, Keivan. The Day AppGet Died.. Keivan Beigi. 2020-05-25 [2020-06-25] (英语). 
  9. ^ Warren, Tom. Microsoft copied its new Windows Package Manager from rival AppGet, claims developer. The Verge (Vox Media). 28 May 2020 [June 1, 2020]. 
  10. ^ 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]. 
  11. ^ 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]. 
  12. ^ Tung, Liam. Windows 10: Microsoft now credits maker of package manager it 'copied' – but offers no apology. ZDNet. June 1, 2020 [2020-06-02]. 
  13. ^ Microsoft gives AppGet creator credit for Windows Package Manager - Neowin
  14. ^ Use the winget tool to install and manage applications | Microsoft Docs
  15. ^ 15.0 15.1 GitHub - microsoft/winget-pkgs: The Microsoft community Windows Package Manager manifest repository
  16. ^ 16.0 16.1 Tung, Liam. Microsoft's Windows Package Manager: This command-line tool can install all your apps. ZDNet. May 21, 2020 [2020-06-02]. 
  17. ^ How to Use Windows Package Manager - Petri
  18. ^ GitHub - microsoft/winget-cli: Windows Package Manager CLI (a.k.a. winget). May 20, 2020. 

外部链接