Skip to content
Bruno Sonnino
Menu
  • Home
  • About
Menu

Managing installed apps in Windows with Winget

Posted on 26 June 2021

On the latest Build, a new thing was released, but went almost unnoticed: the new package manager, WinGet (https://github.com/microsoft/winget-cli).

You may say “Another package manager ?”, and you are right: we already have Chocolatey (https://chocolatey.org/) and the Windows Store, but this one is official and uses the command line, so it’s easier to use for power users and you can create PowerShell scripts to automate installations: just create a Powershell script and run it on a new machine to have it fully configured.

To install it, you must have Windows App Installer installed in your machine. If you don’t have it, you can get it from the Windows Store:

You can download and install the Windows Package Manager from the Winget GitHub page or just install the latest version directly. Then, you will be able to use Winget to manage your packages.

You can open a Command Line, PowerShell or Terminal (BTW, this is very nice. If you haven’t installed it, you can use WinGet to install it) and use it. If you type Winget in the command line, you will have a list of commands available:

From the list, you can see the first things that come to view: install and uninstall. With Winget, you can easily install and uninstall apps in your machine. One note, here: if the operation needs admin rights, you will be asked for elevation, unless you are already running on an elevated command line prompt.

To see what’s installed in your machine, just use Winget list and it will show you all the apps installed in your machine, both Desktop apps and Store apps:

One extra thing that is shown there is, if the app is available on Winget, it will show you if the app is up-to-date or there is an updated version of the app. For example, it’s showing that there is a newer version of the excellent markdown editor, MarkdownMonster (if you edit markdown files, I really recommend checking it). I can update it with

winget upgrade "Markdown Monster"
PowerShell

To get a list of all apps that can be upgraded, you can type

winget upgrade
PowerShell

You can upgrade all available packages with

winget upgrade --all
PowerShell

If you want to install a package, you can search to see if it’s in Winget’s repository with

winget search
PowerShell

That will show you all the packages available in the repository

You can install any of them using Winget install and use the name or the id of the app. For example, you can install version 3.9 of Python using

winget install "python 3.9"
PowerShell

In this case, I used the quotes for the name, because the name has spaces in it.

If you want to know details of a package, you can use the Show command:

winget show Powertoys
PowerShell

You will have the description, publisher, website and other information of the package

All the packages are obtained from registered repositories, which you can manage with the winget source command. To list the registered repositories, you can use

winget source list
PowerShell

At the moment, you can’t set up your own repositories, but I think that in the future that will be possible and will open the possibility for an enterprise to create its own repository of registered apps, available for all its members.

As Winget is still in development, there may be some experimental features that may be disabled or enabled. To list the experimental features available, you can use the Winget features command:

You can enable the experimental features by configuring the settings for Winget. hen you type Winget settings, the default editor for json files is opened with the settings file, where you can edit the preferences for Winget. you can check the preferences for the current version at https://github.com/microsoft/winget-cli/blob/master/doc/Settings.md

As you can see from my settings file, I have enabled the Rainbow progress bar, set the install preferences to User and enabled the store experimental feature.

One nice feature is that you can export the installed apps in your machine to a file that can be used in another machine to reinstall the same apps. But there is a catch: only files in Winget repository will be installed. That way, you may not have your machine fully configured, but that will be better when the repository has more programs.

Conclusions

Winget is a very promising package manager, it still doesn’t have a huge repository of packages (there are currently about 1400 apps there) but, if you have created an app, you can submit yours here. There are still some features I’d like to have, but let’s see what the future will bring us:

  • Knowing more information on an installed package: Description, manufacturer, website, installation folder
  • Search and Installed apps ordered by Name

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • May 2025
  • December 2024
  • October 2024
  • August 2024
  • July 2024
  • June 2024
  • November 2023
  • October 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • June 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • October 2020
  • September 2020
  • April 2020
  • March 2020
  • January 2020
  • November 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • November 2017
  • October 2017
  • September 2017
  • August 2017
  • June 2017
  • May 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • October 2015
  • August 2013
  • May 2013
  • February 2012
  • January 2012
  • April 2011
  • March 2011
  • December 2010
  • November 2009
  • June 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • July 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • Development
  • English
  • Português
  • Uncategorized
  • Windows

.NET AI Algorithms asp.NET Backup C# Debugging Delphi Dependency Injection Desktop Bridge Desktop icons Entity Framework JSON Linq Mef Minimal API MVVM NTFS Open Source OpenXML OzCode PowerShell Sensors Silverlight Source Code Generators sql server Surface Dial Testing Tools TypeScript UI Unit Testing UWP Visual Studio VS Code WCF WebView2 WinAppSDK Windows Windows 10 Windows Forms Windows Phone WPF XAML Zip

  • Entries RSS
  • Comments RSS
©2025 Bruno Sonnino | Design: Newspaperly WordPress Theme
Menu
  • Home
  • About