The winget command line tool enables users to discover, install, upgrade, remove and configure applications on Windows 10 and Windows 11 computers. This tool is the client interface to the Windows Package Manager service.
Install Winget
Windows Package Manager Winget is already come with Windows 11 and latest versions of Windows 10 by default.
If you running an earlier version of Windows and App Installer is not installed, you can install App Installer from the Microsoft Store. App Installer includes the production version of the winget tool.
Check whether winget is Installed or Not
winget
This command verifies whether winget is installed or not. Also shows the commands available under the winget.
It will also show the version of Windows Package Manager.
usage : winget <command> <option>
Install Packages
winget install [package_name]
This command will start installing the package directly. If two or more repositories available with same name.
then we have to specify the exact Application ID. Like
winget install --id=[Package_id] -e
Search for Packages
Use winget to search for available packages in the public Windows Package Manager Community repository or in the Microsoft Store. The syntax is:
winget search [packages_name]
List the Packages installed in System
We can list down all packages/Application installed in the System. The Syntax is :
winget list
Upgrade the Packages
If we want to upgrade the specific Packages then Syntax is :
winget upgrade [package_name]orwinget upgrade --id=[Package_id] -e
We can also upgrade the all the packages in one command
winget upgrade --all
Uninstall Packages
Uninstall the packages with uninstall Package. The Syntax is:
winget uninstall [package_name]orwinget uninstall --id=[package_id] -e