Windows Package Manager Preview

Demitrius Nelon

We are thrilled to announce the Windows Package Manager preview!

If you’re already familiar with what a package manager is, feel free to skip this paragraph. If you’re still reading, you’re going to love this! A package manager is designed to help you save time and frustration. Essentially, it is a set of software tools that help you automate the process of getting software on your machine. You specify which apps you want installed, and it does the work of finding the latest version (or the exact one you specified) and installing it on your machine.

Just about every developer has wanted a native package manager in Windows. That day is finally here. You are going to be able to winget install your way to bliss. One of the best parts is that it is open source. I had to pinch myself when I was able to winget install terminal, and then winget install powershell, and then winget install powertoys. You get the idea, and If you do not see an app you use, just create a new manifest, and submit a pull request.

Execute winget in Windows Terminal

When can I try it?

As of today, the Windows Package Manager preview has been made open source. You can clone, build, run and test the code from the GitHub repository (https://github.com/microsoft/winget-cli). There are other possibly easier ways to get your hands on it if that doesn’t sound appealing. Please continue reading.

What functionality is included?

You can install any app with a valid manifest (even local ones -- manifest). The command line client “winget.exe” is already pre-configured to point to the Microsoft community repository. That means you can install any package with a manifest that has been published.

Have you ever had to completely re-install all your apps and tools on your PC? How long did it take? How did you remember where to go to find, download, and install all your editors & IDEs, languages & runtimes, source control tools, etc.?

 

Did you enjoy it? Yeah, neither did we … which is why we created Windows Package Manager.

 

Now you can install all your favorite apps & tools simply by typing winget install <foo> into your command-line. Or better still, you can create a script file that installs ALL your tools while you sit back enjoy a well-earned coffee break!”

You can search for available packages and display information using the show command. There are also commands to help with manifest creation and validation (hash and validate). Once the first third-party repository is published, you will be able to add that repository as a source as well. We’re providing documentation at https://docs.microsoft.com/windows/package-manager and both of the GitHub repositories.

Executing the winget install vscode command in Windows Terminal

How do I get it?

We have provided three different ways for you to get your hands on the Windows Package Manager. If you are a Windows Insider, you may already have it. First, you can head over to the open source GitHub repository for the client. Second, you can join any of the Windows Insider rings. Third, you can join the Windows Package Manager Insider program by providing your Microsoft Account (MSA) to Windows Package Manager Insider Program and request to be included in the preview. Either of the Insider programs will ensure you automatically receive updates as we progress from preview to general availability. After you have joined either Insider program, head over to the Microsoft Store and get the App Installer. The Windows Package manager will be available after you get the update.

The App Installer in the Microsoft Store

Why not contribute to another open source package manager?

We looked at several other package managers. There were several reasons leading us to create a new solution. One critical concern we had was how to build a repository of trusted applications. We are automatically checking each manifest. We leverage SmartScreen, static analysis, SHA256 hash validation and a few other processes to reduce the likelihood of malicious software making its way into the repository and onto your machine. Another key challenge was all the changes required to be able to deliver the client program as a native Windows application.

Which versions of Windows will be supported?

Windows Package Manager will support every Windows 10 version since the Fall Creators Update (1709)! The Windows Package Manager will be delivered with the Desktop App Installer when we ship version 1.0. If you are building software to run on Windows 10 you will have a simple way for your customers to install your software on billions of machines.

But what about…

We are expecting you have plenty of questions. What does this mean for the Windows store? It doesn’t mean anything for the Windows store. The Windows Package Manager is a command line interface, no marketing, no images, no commerce. Although we do plan on making those apps installable too.

What about insert any other package manager here? We think they are great. If they want to leverage our repository of validated packages, they can. If they want to see how we are doing it, it is open source. We’re open to feedback and suggestions.

We have already talked with a few of the well-known package manager teams. Chocolatey has a vibrant community with a massive collection of applications, and a rich history supporting both open source and enterprise customers. Scoop provides a convenient way to allow software to be installed without the UAC popups. Ninite keeps an eye on updates for all the apps it installed. There are many others like AppGet, Npackd and the PowerShell based OneGet package manager-manager.

If you are happy with your current package manager, keep using it. Our goal is to make installing software on Windows better for everyone.

What’s next?

We have a long list of features we think you will like. Take a look at the list of issues we have already created on GitHub. Be sure to +1 any issues you feel strongly about. If you do not see something, and you would like us to consider it, just create a new issue.

59 comments

Discussion is closed. Login to edit/delete existing comments.

  • Joshua Scott 0

    Great! Hopefully we find in built into Windows soon! Also hope it supports installing Chocolatey lol

  • Stuard Gerardo Carrillo Gonzalez 0

    Great idea!!!

  • Michal Piotrowski 0

    after all these years

    thank you

  • Professor Pro 0

    Cool, but nothing yet for windows server today?

  • Mystery Man 0

    Hello! This is exciting news, given that a package manager is what Windows always lacked. I always felt it would have been great to manage software updating from one central point of administration.

    But first, why is it a traditional command-line app? Why is it not a PowerShell module, especially one that supports remoting? In fact, the PowerShell team is creating a new package manager. Why these two efforts are divergent in the first place? Let me remind you what happened the last time Microsoft’s efforts became divergent and unfocused: Windows 8 happened!

  • Tim Gaywood 0

    I am very excited about this change.

    Hoping in the long term it will help both users and developers. in the user space it will be great to have a central place to update all applications and avoid every application needing separate application /scheduled tasks to update. This will also help ensure all applications are up to date.

    In the developer space it will free up resources not having to create a separate updater application.

    It will need the ability to update applications as well as installing initially for it to be a proper package management tool.

    Dependency management is a major part of package management. it is rare for applications to remove any dependencies during uninstall and package management can solve that issue.

    Personally I am happy with commandline and potential powershell scripting and so will businesses however home users and smaller businesses will want a GUI.

    Being able to create a script to install all my favourite applications at the push on a button after a fresh install of windows will be fantastic.

    Being able to rollback to an earlier version of an application if a bug occurs would also be a nice feature.

  • Daniel Fenn 0

    So I am looking at Windows Package Manager, and I think it greats that windows is getting this. Does anyone knows if after downloading and installing the request software if it keeps the downloaded file or removes it?

  • Jonathan Langevin 0

    @denelon, so happy to see something like this getting picked up at Microsoft. Very stoked about all the open-source efforts coming out of MS right now, hopefully winget picks up a lot of traction.

    Do you guys have a roadmap published, so we can see what’s at least planned in the next couple of releases, and what’s backlogged? I see you have “specification tracker” project created in Github, but as everything is in the first lane still, I’m not quite sure how relevant it is.

    Features I’d like to see:
    – updating
    – alternative repos
    – dependency management
    – uninstall
    – snapshot/rollback
    – custom URL support to click in browser to quickly launch terminal process

Feedback usabilla icon