Last year Microsoft introduced a preview of Windows Package Manager, a utility that lets you install Windows applications from a command prompt. Basically it’s the Windows equivalent of the apt, yum, or pacman tools used by GNU/Linux distributions like Debian, Fedora, and Arch.
But the Windows Package Manager is still very much a work in progress. For example, one big thing it didn’t support until recently? Uninstalling apps.
Anything you installed from a command line still needed to be removed using the traditional Windows add/remove programs dialog. But that’s no longer the case starting with Windows Package Manager v0.2.10191 Preview, which adds experimental support for uninstalling apps.
Since the feature is still experimental, it needs to be enabled. After installing the latest version of the Windows Package Manager, you can enable uninstall support by:
- Typing “winget settings” (without the quotes) and then hitting enter to open the Settings file in Notepad or another text editor
- Adding the following text to Settings file and then saving and closing the file:
"experimentalFeatures": {
"uninstall": true
},
Once that’s done, you can use the Package Manager to begin the uninstall process for just about any software on your computer by typing “winget uninstall <app name>.” But there are a few things to keep in mind.
First, Windows Package Manager will launch the uninstaller for the program, which means that you can start the process from the command line, but you’ll probably end up finishing it using a graphical user interface.
Second, the uninstall command is very picky with names. I was able to install VLC media player by typing:
winget install vlc
But in order uninstall the same program, I needed to type
winget uninstall "vlc media player 3.0.11 (64-bit)"
You can get a complete list of installed applications and their proper names by typing “winget uninstall” though, which may help. But honestly, it’s probably faster just to launch the Windows add/remove program utility at this point.
Still, it’s nice to see that Microsoft developers are continuing to work on Windows Package Manager, and I’m hopeful that one day it could become a useful tool for adding and removing programs using a keyboard.
Here’s a little preview of `winget uninstall`. It will be released soon in our next preview after localization of some new strings and a little more testing. BTW, the Nightingale REST Client is great. I installed it back on my machine right after this demo was finished 🙂 pic.twitter.com/6IXQGBl8zf
— Demitrius Nelon (@DenelonMs) January 22, 2021
via Windows Central and @DenelonMs
This is really cool, one of my favorite part about using Linux (Ubuntu in my case) is I don’t have open the software installer/uninstaller in order to add or remove an application. As this can be done easily via terminal.
This seems cool but don’t see why it’s any better than simply uninstalling programs with wmic.
Everyday Windows seems more and more like Linux, but it’s a long road to run
I mean, sure, but it’ll be a looong time before I switch from Chocolatey to this.