Winget: Windows 10 Package Manger to install various apps via command

Microsoft’s Windows 10 package manager Winget will allow users to install various applications using the command line just like Linux systems. Here is the tutorial on how to use and install programs using Winget commands.

What does Winget Windows 10 Package Manager do?

Winget is a free and open-source package manager created by Microsoft for its Windows 10 operating system to makes things a little bit easier. If you are a Linux user then you already know the benefits of Package Manager, how easy it is to install the various applications with just a single command. Thus, I think Microsoft knows the Linux is the future of the operating systems, so to be in the game it also has to provide something much robust or similar kind of feature due to which even the Linux fans start feeling the same agility of installing the applications on Windows.

Therefore, this Winget comes with command-line utility and a set of services for downloading and installing common applications.  However, currently, it is CLI but sooner or later it would have a graphical UI as well to easily find both open and closed source applications under one roof.

You can consider Winget just like Chocolatey. However, Chocolatey Choco also works on Windows 7.

How to get Winget Windows package Manager?

To install Windows Package Manager the user must be on Windows 10 1709 (16299) or later. That’s it, if you are on this build of OS then you don’t need to install anything, the Winget is already on your system.

However, if you don’t want to update your system to the latest version then you can install it manually by downloading .appxbundle available on Github.

How to use Winget to install apps

The usage of Winget to install the application available in its repository is quite easy even more than Linux one. Just open the Command terminal on your Windows 10 and type:

winget

The above command will give this output:

Windows Package Manager v0.2.2521 Preview
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 info about an package
source Manage sources of packages
search Find and show basic info of packages
hash Helper to hash installer files
validate Validates a manifest file
settings Open settings
features Shows the status of experimental features

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

 

This means the Winget is absolutely working fine.

Now, its time to install some packages using it. To search any app to install using Winget we can use the command:

winget search app-name

For example: To install the Google Chrome browser, we will run

winget search googlechrome

In the below screenshot, you can see it has searched the available package related to our query.

install apps using Winget Windows package Manager

Now to install it, we use the command:

winget install ID

The ID is the name that Winget uses to identify the program. Here you can see in the above image when we have searched for the chrome packages in the result it also gave the ID for the same. Thus, to install Chrome, the command will be

winget install Google.Chrome

However, you can also simply use the name of the package to install, for example, google chrome can be installed using the command Winget install googlechrome only, however, when there are multiple versions available of a similar package then using ID will be a better way to install apps.

In the same, way we can install VLC or any other applications to know all the available packages or software to install using Winget, simply type:

winget install

 

You can know more about the tool on the official Windows Package Manager documentation.

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.