Windows 程序包管理器(预览)Windows Package Manager (preview)


Windows 程序包管理器和 winget 工具目前为公共预览版,在正式发布前可能会进行重大修改。Windows Package Manager and the winget tool are in public preview and may be substantially modified before they are generally available. Microsoft 不对此处提供的信息作任何明示或默示的担保。Microsoft makes no warranties, express or implied, with respect to the information provided here.

Windows 程序包管理器是一个综合的程序包管理器解决方案,由一个命令行工具和一组用于在 Windows 10 上安装应用程序的服务组成。Windows Package Manager is a comprehensive package manager solution that consists of a command line tool and set of services for installing applications on Windows 10.

面向开发人员的 Windows 程序包管理器Windows Package Manager for developers

开发人员可以使用 winget 命令行工具发现、安装、升级、删除和配置特选应用程序集。Developers use the winget command line tool to discover, install, upgrade, remove and configure a curated set of applications. 安装后,开发人员可以通过 Windows 终端、PowerShell 或命令提示符访问 winget。After it is installed, developers can access winget via the Windows Terminal, PowerShell, or the Command Prompt.

有关详细信息,请参阅使用 winget 工具安装和管理应用程序For more information, see Use the winget tool to install and manage applications.

面向 ISV 的 Windows 程序包管理器Windows Package Manager for ISVs

独立软件供应商 (ISV) 可以将 Windows 程序包管理器用作包含工具和应用程序的软件包的分发渠道。Independent Software Vendors (ISVs) can use Windows Package Manager as a distribution channel for software packages containing their tools and applications. 我们在 GitHub 上提供了开源 Microsoft 社区程序包清单存储库,方便用户将软件包(包含 .msix、.msi 或 .exe 安装程序)提交到 Windows 程序包管理器。ISV 可以在 GitHub 中上传程序包清单,我们在考虑后会决定是否将其软件包包括在 Windows 程序包管理器中。To submit software packages (containing .msix, .msi, or .exe installers) to Windows Package Manager, we provide the open source Microsoft Community Package Manifest Repository on GitHub where ISVs can upload package manifests to have their software packages considered for inclusion with Windows Package Manager. 清单会自动进行验证,你也可以手动查看清单。Manifests are automatically validated and may also be reviewed manually.

有关详细信息,请参阅将程序包提交到 Windows 程序包管理器For more information, see Submit packages to Windows Package Manager.

了解程序包管理器Understanding package managers

程序包管理器是一个用于自动安装、升级、配置和使用软件的系统或工具集。A package manager is a system or set of tools used to automate installing, upgrading, configuring and using software. 大多数程序包管理器都是设计用于发现和安装开发人员工具。Most package managers are designed for discovering and installing developer tools.

理想情况下,开发人员使用程序包管理器来指定先决条件,这些先决条件适用于为给定项目开发解决方案所需的工具。Ideally, developers use a package manager to specify the prerequisites for the tools they need to develop solutions for a given project. 然后,程序包管理器就会按照声明性说明来安装和配置这些工具。The package manager then follows the declarative instructions to install and configure the tools. 程序包管理器可减少准备环境所需的时间,并有助于确保在计算机上安装相同版本的程序包。The package manager reduces the time spent getting an environment ready, and it helps ensure the same versions of packages are installed on their machine.

第三方程序包管理器可以利用 Microsoft 社区程序包清单存储库增加其软件目录的大小。Third party package managers can leverage the Microsoft Community Package Manifest Repository to increase the size of their software catalog.