When the words “Package Manager” are mentioned, it is redolent of the mature and famous Linux tools such as apt for Debian based systems, zypper for OpenSUSE, and yum|dnf for RedHat-based distributions. In conjunction with that, Windows users requested a native package manager developed by Microsft that they can jump on to save their time while installing software and tools. It seems that the plea was heard and something was done about it.
Microsoft has developed winget to help accomplish this feature in the future and what is more amazing about it is that it is an opensource project. Moreover, Windows Package Manager (winget) is a tool designed to help you quickly and easily discover and install those tools that make your PC environment special. By using the Windows Package Manager, from one command, you can install your favorite tool.
In addition to other goodies, winget exposes the following commands and options for the preview.
- install Installs the given application
- show Shows info about an application
- source Manage sources of applications
- search Find and show basic info of apps
- hash Helper to hash installer files
- validate Validates a manifest file
- –help Provides command line help
- –info Provides addition data, helpful for troubleshooting
- –version Provides the version of the client
The client is distributed within the App Installer package. While this package is pre-installed on Windows, the client will not be made generally available during the Preview period. In order to get automatic updates from the Microsoft Store that contain the client, one must do one of the following:
- Install a Windows 10 Insider build
- Join the Preview flight ring by signing up on this site.
- Install Windows Desktop App Installer package located in the release folder of the winget repository.
Personally, I installed Windows Desktop App Installer package located in the release folder of the winget repository.
To install “winget” directly, head over to winget preview files and download the Microsoft.DesktopAppInstaller .appxbundle file then click on it to install it. Click on “Update“
winget cli tool can be used with both commandline (cmd) or PowerShell. Launch either of the two as “Administrator” and you are ready to issue the commands below:
- install: Installs the given application
- show: Shows info about an application
- source: Adds, removes and updates the Windows Package Manager repositories accessed by the winget tool
- search: Find and show basic info of apps
- hash: Helper to hash installer files. It generates the SHA256 hash for the installer
- validate: Validates a manifest file for submission to the Windows Package Manager repository
- help: Displays help for the winget tool commands.
Illustrations shown below
In this section, we are going to see examples of using the winget cli tool.
Search for an application
To see if your applicaction is found in the repositories, issue the command below to search for an application you would wish to install.
winget search notepad
Install an application
Issue the command below to install an application.
winget install Notepad++
Check an application’s information
Issue the command below to see more information about a given application.
winget show Notepad++
After installation, confirm that your application is installed successfully. Simply search for it in Windows
And there it is!
There we are at last and we now have winget installed. To continue with the magic, simply start off your PowerShell | Comandline, search for your applications, and get them installed as wonderfully as we have seen. At least we can now live in the terminal while in our Windows Operating Systems. To sum up, thank you for visiting and spending your time on the blog. For more fun, check the guides shared below: