On May 19th, 2020, Microsoft announced the Windows Package Manager preview.
Winget on GitHub: https://github.com/microsoft/winget-cli/releases/
Windows Package Manager v1.0.11451
PS C:\Users\tuyen> winget --info Windows Package Manager v1.0.11451 Copyright (c) Microsoft Corporation. All rights reserved. Windows: Windows.Desktop v10.0.19042.985 Package: Microsoft.DesktopAppInstaller v1.11.11451.0 Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir Links -------------------------------------------------------- Privacy Statement https://aka.ms/winget-privacy License Agreement https://aka.ms/winget-license Third Party Notices https://aka.ms/winget-3rdPartyNotice Homepage https://aka.ms/winget PS C:\Users\tuyen>
PS C:\Users\tuyen> winget Windows Package Manager v1.0.11451 Copyright (c) Microsoft Corporation. All rights reserved. The winget command line utility enables installing applications and other packages from the command line. usage: winget [<command>] [<options>] The following commands are available: install Installs the given package show Shows information about a package source Manage sources of packages search Find and show basic info of packages list Display installed packages upgrade Upgrades the given package uninstall Uninstalls the given package hash Helper to hash installer files validate Validates a manifest file settings Open settings features Shows the status of experimental features export Exports a list of the installed packages import Installs all the packages in a file For more details on a specific command, pass it the help argument. [-?] The following options are available: -v,--version Display the version of the tool --info Display general info of the tool More help can be found at: https://aka.ms/winget-command-help PS C:\Users\tuyen>
winget source update
Install Oracle VM VirtualBox
C:\Users\Tuyen>winget search virtualbox Name Id Version Match ------------------------------------------------------------------------------------------- Oracle VM VirtualBox Oracle.VirtualBox 6.1.22 eintopf mazehall.eintopf 1.3.2 Tag: virtualbox Oracle VM VirtualBox Test Oracle.VirtualBoxTest 6.1.21-144078 Oracle VM VirtualBox Development Oracle.VirtualBoxDevelopment 6.1.97-142300 Fri 06/04/2021 12:08:32.81 C:\Users\Tuyen>winget install "Oracle VM VirtualBox" Found Oracle VM VirtualBox [Oracle.VirtualBox] This application is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Downloading https://download.virtualbox.org/virtualbox/6.1.22/VirtualBox-6.1.22-144080-Win.exe ██████████████████████████████ 103 MB / 103 MB Successfully verified installer hash Starting package install... Successfully installed
Windows Package Manager v0.2.2941 Preview
PS C:\Users\tuyen> winget --info Windows Package Manager v0.2.2941 Preview Copyright (c) Microsoft Corporation. All rights reserved. Windows: Windows.Desktop v10.0.20246.1 Package: Microsoft.DesktopAppInstaller v1.11.2941.0 Links -------------------------------------------------------- Privacy Statement https://aka.ms/winget-privacy License Agreement https://aka.ms/winget-license Third Party Notices https://aka.ms/winget-3rdPartyNotice Homepage https://aka.ms/winget PS C:\Users\tuyen>
usage: winget [<command>] [<options>] winget --version winget --info winget search dotnet winget install dotnet winget show dotnet winget list
Example: Install powershell
PS C:\Users\tuyen> winget install powershell Found PowerShell [Microsoft.PowerShell] This application is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Downloading https://github.com/PowerShell/PowerShell/releases/download/v7.1.2/PowerShell-7.1.2-win-x64.msi ██████████████████████████████ 95.0 MB / 95.0 MB Successfully verified installer hash Starting package install...
Search 7-zip
PS C:\Users\tuyen> winget search 7zip Name Id Version Match ------------------------------------------------------------ 7-Zip 7zip.7zip 19.00.00.0 Moniker: 7zip 7Zip-zstd mcmilk.7zip-zstd 19.00-v1.4.5-R2 Tag: 7zip 7-Zip - Alpha 7zip.7zipAlpha 21.02-alpha Tag: 7zip PS C:\Users\tuyen>
AWS CLI
PS C:\Users\tuyen> winget install aws-cli Found AWS Command Line Interface v2 [Amazon.AWSCLI] This application is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Downloading https://awscli.amazonaws.com/AWSCLIV2-2.2.9.msi ██████████████████████████████ 26.4 MB / 26.4 MB Successfully verified installer hash Starting package install... Successfully installed PS C:\Users\tuyen>
Install PowerShell
PS C:\Users\tuyen> winget show powershell Found PowerShell [Microsoft.PowerShell] Version: 7.1.4.0 Publisher: Microsoft Corporation Moniker: pwsh Description: PowerShell is a cross-platform (Windows, Linux, and macOS) automation and configuration tool/framework that works well with your existing tools and is optimized for dealing with structured data (e.g. JSON, CSV, XML, etc.), REST APIs, and object models. It includes a command-line shell, an associated scripting language and a framework for processing cmdlets. Homepage: https://microsoft.com/PowerShell License: MIT License Url: https://github.com/PowerShell/PowerShell/blob/master/LICENSE.txt Installer: Type: Msi Locale: en-US Download Url: https://github.com/PowerShell/PowerShell/releases/download/v7.1.4/PowerShell-7.1.4-win-x64.msi SHA256: 9190f005adcc59f1d2cff21b8d4fbba70d72b8b4b567d845b33508a9c388a7a2 PS C:\Users\tuyen> winget install powershell Found PowerShell [Microsoft.PowerShell] This application is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Downloading https://github.com/PowerShell/PowerShell/releases/download/v7.1.4/PowerShell-7.1.4-win-x64.msi ██████████████████████████████ 94.9 MB / 94.9 MB Successfully verified installer hash Starting package install... Successfully installed PS C:\Users\tuyen>
Upgrade Powershell
PS C:\Users\tuyen> winget upgrade powershell Found PowerShell [Microsoft.PowerShell] Version 7.3.0.0 This application is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Downloading https://github.com/PowerShell/PowerShell/releases/download/v7.3.0/PowerShell-7.3.0-win-x64.msi ██████████████████████████████ 101 MB / 101 MB Successfully verified installer hash Starting package install... Successfully installed PS C:\Users\tuyen>
Install Microsoft Azure CLI
PS F:\Projects\azure> winget install Microsoft.AzureCLI Found Microsoft Azure CLI [Microsoft.AzureCLI] This application is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Downloading https://azcliprod.azureedge.net/msi/azure-cli-2.28.0.msi ██████████████████████████████ 48.6 MB / 48.6 MB Successfully verified installer hash Starting package install... Successfully installed PS F:\Projects\azure>