Skip to content

Install winget

https://learn.microsoft.com/en-us/windows/package-manager/winget/

$progressPreference = 'silentlyContinue'
Invoke-WebRequest -Uri https://aka.ms/getwinget -OutFile Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
Invoke-WebRequest -Uri https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile Microsoft.VCLibs.x64.14.00.Desktop.appx
Invoke-WebRequest -Uri https://github.com/microsoft/microsoft-ui-xaml/releases/download/v2.8.6/Microsoft.UI.Xaml.2.8.x64.appx -OutFile Microsoft.UI.Xaml.2.8.x64.appx
Add-AppxPackage Microsoft.VCLibs.x64.14.00.Desktop.appx
Add-AppxPackage Microsoft.UI.Xaml.2.8.x64.appx
Add-AppxPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle

Installers are located in github.com/microsoft/winget-pkgs/blob/master/manifests/ ordered by company, product and version like /Mozilla/Firefox/127.0.2/ being the actual installer Mozilla.Firefox.installer.yaml

Pin a package

List all installed packages

winget list

Pin a package

winget pin add Git.Git

List all pinned packages

winget pin list

Remove a pinned package

winget pin remove Git.Git

Upgrade all packages

winget upgrade --all
winget upgrade --all --include-pinned

Check the contents of a package

winget show JGraph.Draw