{"id":1544,"date":"2022-01-18T09:58:10","date_gmt":"2022-01-18T08:58:10","guid":{"rendered":"https:\/\/nguenkam.com\/blog\/?p=1544"},"modified":"2022-01-18T12:41:28","modified_gmt":"2022-01-18T11:41:28","slug":"windows-package-manager","status":"publish","type":"post","link":"https:\/\/nguenkam.com\/blog\/index.php\/2022\/01\/18\/windows-package-manager\/","title":{"rendered":"Windows Package Manager"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<h4>What is Windows Package Manager?&nbsp;<\/h4>\n\n\n\n<p>Windows Package Manager is a command-line tool for managing software that can be used on Windows 10 through&nbsp;<a href=\"https:\/\/www.techradar.com\/how-to\/computing\/how-to-automate-windows-with-powershell-1316719\">PowerShell<\/a>&nbsp;or Command Prompt. The implementation is very similar to a Linux package manager, though naturally, as it&#8217;s on Windows there are differences.&nbsp;<\/p>\n\n\n\n<p>Windows Package Manager doesn&#8217;t actually host any packages itself. Instead, its users create manifests which get added to that a central repository, and those manifests are then enacted to fetch software from its regular home on the web.&nbsp;<\/p>\n\n\n\n<p>That could be Github, it could be a software developer&#8217;s website, it could even be the Microsoft Store. One of the strengths of Windows Package Manager is how simple it is to create a manifest to install a piece of software.&nbsp;<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4>How to install Windows Package Manager&nbsp;?<\/h4>\n\n\n\n<p>If you are running on any current&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/insider.windows.com\/\" target=\"_blank\">Windows Insider<\/a>&nbsp;build or you have&nbsp;<a rel=\"noreferrer noopener\" href=\"http:\/\/aka.ms\/winget-InsiderProgram\" target=\"_blank\">signed up<\/a>&nbsp;for the Windows Package Manager Insider group you may already have it. The Windows Package Manager is distributed with the&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.microsoft.com\/en-us\/p\/app-installer\/9nblggh4nns1\" target=\"_blank\">App Installer<\/a>&nbsp;from the Microsoft Store..  You can also just head to the&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/microsoft\/winget-cli\" target=\"_blank\">Github page<\/a>&nbsp;and get it from there. It&#8217;s worth dropping by Github, as there&#8217;s a ton of useful information there.<\/p>\n\n\n\n<p><em><strong>Grab the latest version on the releases page by downloading the <span class=\"has-inline-color has-vivid-cyan-blue-color\">&#8216;.appxbundle&#8217; <\/span>file. <\/strong><\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"320\" src=\"https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/01\/image-7-1024x320.png\" alt=\"\" class=\"wp-image-1546\" srcset=\"https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/01\/image-7-1024x320.png 1024w, https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/01\/image-7-300x94.png 300w, https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/01\/image-7-768x240.png 768w, https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/01\/image-7.png 1264w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><em><strong>Once downloaded, simply open it like any Windows executable, and the &#8216;App Installer&#8217; built into Windows 10 will do the rest.&nbsp;<\/strong><\/em><\/p>\n\n\n\n<p><\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4>How to find and install apps with Windows Package Manager&nbsp;?<\/h4>\n\n\n\n<p>One of the most basic features of Windows Package Manager and the number one reason you&#8217;re going to install it at all is for installing applications onto a Windows 10 PC. But Windows Package Manager can also help you find the applications you&#8217;re looking for.<\/p>\n\n\n\n<p>The repository currently lives on Github but it&#8217;s hardly a user-friendly experience to have to trawl through an enormous list. Instead, there are two important commands to remember:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>winget install xx\nwinget search xx<\/code><\/pre>\n\n\n\n<p>All Windows Package manager commands are invoked using the &#8216;winget&#8217; term. So, for example, if you wanted to search for Microsoft PowerShell you would enter this command:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>winget search PowerShell<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"559\" height=\"266\" src=\"https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/01\/image-8.png\" alt=\"\" class=\"wp-image-1547\" srcset=\"https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/01\/image-8.png 559w, https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/01\/image-8-300x143.png 300w\" sizes=\"(max-width: 559px) 100vw, 559px\" \/><\/figure>\n\n\n\n<p>You will then be presented with a table showing any packages which match your search term. Included will be the specific ID you need in order to download it. You don&#8217;t always need this, but with something such as PowerShell where there are multiple versions available, you will. To download it you would enter:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>winget install Microsoft.PowerShell<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><span class=\"has-inline-color has-vivid-red-color\"><strong>ps:<\/strong><\/span><em> Alternatively, if you&#8217;d prefer something with a nice-looking UI, there&#8217;s a superb third-party tool called&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/winstall.app\/\" target=\"_blank\">winstall.app<\/a>&nbsp;you should check out. It pulls the entire Windows Package Manager repository but makes browsing it a little easier on the eye. There&#8217;s also the added bonus of being able to generate the necessary install scripts for multiple apps at a time to simply copy and paste.&nbsp;<\/em><\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4>How to uninstall apps with Windows Package Manager&nbsp;?<\/h4>\n\n\n\n<p>The uninstall feature was one of the later additions during the Windows Package Manager preview process, needing to be enabled manually in the settings JSON file. As of v1.0 this is no longer the case and the functionality is baked right in.&nbsp;<\/p>\n\n\n\n<p>To uninstall an app using Windows Package Manager the command template is as follows:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>winget uninstall xx<\/code><\/pre>\n\n\n\n<p><strong><span class=\"has-inline-color has-vivid-red-color\">PS<\/span>:<\/strong> <em>The feature does seem limited to packages previously installed with Windows Package Manager at this time.&nbsp;<\/em><\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4><span class=\"has-inline-color has-vivid-red-color\">winstall.app<\/span><\/h4>\n\n\n\n<p>winstall.app is a website that makes it easy to install apps with winget.<\/p>\n\n\n\n<p>You can search for applications and generate the command to run in order to install them on your Windows 10 PC, <em>always with winget<\/em>.<\/p>\n\n\n\n<p>Here&#8217;s how:<\/p>\n\n\n\n<ul><li>Go to the website: https:\/\/winstall.app.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"726\" height=\"526\" src=\"https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/01\/image-9.png\" alt=\"\" class=\"wp-image-1560\" srcset=\"https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/01\/image-9.png 726w, https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/01\/image-9-300x217.png 300w\" sizes=\"(max-width: 726px) 100vw, 726px\" \/><\/figure>\n\n\n\n<ul><li>Search for the application to install using the search field:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" src=\"https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/01\/image-10.png\" alt=\"\" class=\"wp-image-1561\" width=\"753\" height=\"459\" srcset=\"https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/01\/image-10.png 753w, https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/01\/image-10-300x183.png 300w\" sizes=\"(max-width: 753px) 100vw, 753px\" \/><\/figure>\n\n\n\n<ul><li>Select the application(s) to install then click on the Generate script button.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"736\" height=\"451\" src=\"https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/01\/image-11.png\" alt=\"\" class=\"wp-image-1562\" srcset=\"https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/01\/image-11.png 736w, https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/01\/image-11-300x184.png 300w\" sizes=\"(max-width: 736px) 100vw, 736px\" \/><\/figure>\n\n\n\n<ul><li>That&#8217;s it, all you have to do is copy\/paste the command in the command prompt or PowerShell to install the selected application(s) with winget!<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"702\" height=\"426\" src=\"https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/01\/image-12.png\" alt=\"\" class=\"wp-image-1563\" srcset=\"https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/01\/image-12.png 702w, https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/01\/image-12-300x182.png 300w\" sizes=\"(max-width: 702px) 100vw, 702px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h4>Summary<\/h4>\n\n\n\n<p><em><span class=\"has-inline-color has-vivid-cyan-blue-color\"><strong>Windows Package Manager<\/strong><\/span><\/em> is designed for finding, installing and now removing applications from a Windows 10\/11 PC.&nbsp;<\/p>\n\n\n\n<p>There&#8217;s plenty more commands to use and the entire project is open-source so you can follow its progress closely and even contribute to its future.\u00a0<\/p>\n\n\n\n<h4>Alternative : <span class=\"has-inline-color has-vivid-red-color\">Chocolatey<\/span><\/h4>\n\n\n\n<p><strong>Chocolatey<\/strong> is another package manager for Windows.<\/p>\n\n\n\n<p>Currently, Chocolatey is more complete and powerful than Microsoft&#8217;s Windows Package Manager.<\/p>\n\n\n\n<p>With Chocolatey, you have  more available software and you have the possibility of updating and uninstalling installed software unlike winget.<\/p>\n\n\n\n<p>To find out more about <strong><em>Chocolatey<\/em><\/strong>, follow this <a href=\"https:\/\/nguenkam.com\/blog\/index.php\/2022\/01\/18\/chocolatey-the-package-manager-for-windows\/\" data-type=\"post\" data-id=\"1565\">link<\/a>:<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h5>Reference:<\/h5>\n\n\n\n<p><a href=\"https:\/\/www.techradar.com\/\">https:\/\/www.techradar.com\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is Windows Package Manager?&nbsp; Windows Package Manager is a command-line tool for managing software that can be used on Windows 10 through&nbsp;PowerShell&nbsp;or Command Prompt. The implementation is very similar to a Linux package manager, though naturally, as it&#8217;s on Windows there are differences.&nbsp; Windows Package Manager doesn&#8217;t actually host any packages itself. Instead, its [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1550,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[439,314,148,96,438],"_links":{"self":[{"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1544"}],"collection":[{"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=1544"}],"version-history":[{"count":5,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1544\/revisions"}],"predecessor-version":[{"id":1573,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1544\/revisions\/1573"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/media\/1550"}],"wp:attachment":[{"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=1544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}