To get started, clone the official winget package repository to your local drive. For example:
git clone https://github.com/microsoft/winget-pkgs T:\winget-pkgs
Replace T:\winget-pkgs
with your preferred local path.
By default, winget only installs packages from the official repository. To enable installation from local manifests, run the following command from an elevated (Administrator) PowerShell or Command Prompt:
winget settings --enable LocalManifestFiles
This configuration allows winget to recognize and use local manifest files.
After enabling the feature, you can install packages directly from your local system. Here's how to install the Zoom VDI Universal Plugin from a local manifest:
winget install --manifest T:\winget-pkgs\manifests\z\Zoom\ZoomVDIUniversalPlugin\6.3.10.25910\
Modify the path to match your local manifest location.
When running the install command, winget processes several YAML manifest files within the specified directory:
Winget uses the installer manifest to download the correct installer for your system, verifies the file integrity using the provided hash, and executes the MSI installer using predefined installation parameters.
Testing winget packages locally provides numerous benefits:
Microsoft.VCRedist.2015+
, required by certain applications.Testing packages locally with winget is straightforward yet invaluable. It helps ensure your manifests are error-free and your package submissions to the official repository will function properly for all users. Whether you're a package maintainer or simply exploring packages before their official release, leveraging winget’s local manifest feature simplifies this essential step.
Optimize your workflow by regularly incorporating local testing into your package management process, ensuring a smoother experience for yourself and end-users alike.