Install Microsoft’s New ‘winget’ Package Manager

Here is how you can install Microsoft’s Latest ‘winget’ Package Manager

Over the years, the way that we install software on our computers has gone through numerous iterations. At the start, we had to rely on Floppy disks and, later on, CDs which came with installation wizards to install softwares on our PCs.

As internet speeds improved, we started to get options to download softwares as well, directly from the internet, without having to buy a physical CD. This was the first major shift in how software is distributed around the world – for the first time, you didn’t need a physical transfer, you could buy and download any software right from your home, in a few minutes. Later on, smartphones, and specifically the iPhone, further evolved this idea through the introduction of App Stores which made the process even easier by providing one trustworthy, central hub for all your application needs.

Microsoft also has its very own Windows Store based on the same idea – a central hub for all your Windows applications. It was introduced in 2012 and has improved considerably, now also being the source of updates for many Windows applications. However, it never really took off the way Microsoft intended it to. Instead, people still relied on other software repositories (package manager) which allowed them to quickly download software from the terminal. Package managers like Chocolatey, Ninite, Scoop, and more.

Now, Microsoft has finally decided to release its very own Package Manager called winget which is a command-line package manager that allows you to quickly download an application from a wide range of Windows applications.

What is winget?

Primarily targeted to developers, the winget command-line tool enables developers to discover, install, upgrade, remove and configure applications on Windows 10 computers. This tool is the client interface to the Windows Package Manager service.

Note: The winget tool is currently a preview, so not all planned functionality is available at this time.

How to install winget?

Currently, this tool is available as a developer preview and won’t be available for everyone. However, there are several ways you can install and use it,

We have already covered the first two options – you just have to participate in the program(s) and you should automatically get the winget tool. To check if you have the tool, just open the Windows Command Prompt and type winget and press Enter.

If it shows this error, you don’t have the winget tool right now,

‘winget’ is not recognized as an internal or external command, operable program or batch file.

Note: The winget tool requires Windows 10, version 1709 (10.0.16299), or a later version of Windows 10. To check the version of Windows installed on your PC, you can follow our guide over here.

Manually Install winget

If you don’t want to participate in the Windows Update programs and still want to get the winget tool right now, you can also manually install it as Microsoft has created a repository on GitHub along with a Releases page.

Note:

  • Keep in mind that installing this package manually will give you the WinGet client, but it will not enable automatic updates from the Microsoft Store.
  • You may need to install the Desktop Bridge VC++ v14 Redistributable Package and the associated Microsoft.VCLibs.140.00.UWPDesktop package. This should only be necessary on older builds of Windows if you get an error about missing framework packages.

Here is how you can install it,

  1. Go to the Releases page.
  2. Download the latest release, as shown in the screenshot below. Once it’s downloaded, click on it to open it.

  3. Click on Update.
  4. Wait for it to completely update the package.
  5. You should see the following screen, as shown in the image below, which means that the package has been installed.

Open the Windows Command Prompt and type winget and you should see the following output, as shown in the screenshot below. If you see it, it means that the package has been installed and you can start using it.

Build Your Own Client

You can also build the client yourself if you are interested in doing that. According to Microsoft’s documentation,  “While the client should be perfectly functional, we are not ready to provide full support for clients running outside of the official distribution mechanisms yet”.

Prerequisites

Building

They currently only build using the solution; command-line methods of building a VS solution should work as well.

We have a guide on how you can use winget to install Windows softwares. You can access it by following our guide over here. We will also methods on how you can use winget to write batch scripts on automating the process of downloading multiple softwares.